[ https://issues.apache.org/jira/browse/NIFI-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417383#comment-15417383 ]
Michael Moser commented on NIFI-2551: ------------------------------------- Applying debug logging shows this is happening: [Thread-1] StandardProcessSession.write() calls FileSystemRepository.create() and reuses claim #100 [Thread-2] StandardProcessSession.removeTemporaryClaim() calls FileSystemRepository.decrementClaimantCount() then calls FileSystemRe pository.remove() on claim #100 [Thread-1] StandardProcessSession.write() calls FileSystemRepository.write() to claim #100, gets an error, and the try-with-resources block closes the OutputStream which gets an NPE. > 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 > 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)