[
https://issues.apache.org/jira/browse/NIFI-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417482#comment-15417482
]
Mark Payne commented on NIFI-2551:
----------------------------------
[~mosermw] - wow this is a great find! Greatly appreciate all of the detailed
analysis & the patch. I am working right now to see if i can create a unit test
that will replicate it. Then I can analyze the patch against it.
Re: your comment about StandardProcessSession being able to operate more
atomically... the design was intended to be such that we don't have to have
larger units of work done atomically, as this can complicate the API and
potentially can result in poor performance. Of course, correctness is more
important than performance though :)
Let me see if I can't replicate and then verify the patch. I'd like to avoid
having to synchronize in those places if we can avoid it, but will have to see
if we can avoid it.
> Rare condition causes FileSystemRepository NPE
> ----------------------------------------------
>
> Key: NIFI-2551
> URL: https://issues.apache.org/jira/browse/NIFI-2551
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.0.0, 0.7.0
> Reporter: Michael Moser
> Assignee: Michael Moser
> Priority: Blocker
>
> In rare unpredictable cases when NiFi is processing a heavy load, we see
> FileSystemRepository throw a NullPointerException
> {noformat}
> java.lang.NullPointerException
> at o.a.n.c.r.FileSystemRepository$2.write(FileSystemRepository.java:919)
> [nifi-framework-core-0.7.0.jar]
> at
> o.a.n.c.r.io.DisableOnCloseOutputStream.write(DisableOnCloseOutputStream.java:49)
> ....
> Suppressed: java.lang.NullPointerException
> at
> o.a.n.c.r.FileSystemRepository$2.flush(FileSystemRepository.java:935)
> [nifi-framework-core-0.7.0.jar]
> at
> o.a.n.c.r.io.DisableOnCloseOutputStream.close(DisableOnCloseOutputStream.java:68)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)