[ 
https://issues.apache.org/jira/browse/NIFI-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16127321#comment-16127321
 ] 

Mark Payne commented on NIFI-4208:
----------------------------------

[~joewitt] - sorry, just figured out what was going on here. Looks like we were 
returning a null when the interface documents that null is not allowed and 
instead we should throw EOFException (because we've already found some data for 
the record). Posted a PR to address. The nice thing is that the bug affects 
reading the data, not writing it. As a result, if a user runs into this issue, 
the patch should allow the NiFi instance to startup properly, once applied.

> Node failed to join cluster due to NullPointerException
> -------------------------------------------------------
>
>                 Key: NIFI-4208
>                 URL: https://issues.apache.org/jira/browse/NIFI-4208
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Critical
>             Fix For: 1.4.0
>
>
> A clustered node ran out of disk space. Upon restart, I came across the 
> following error:
> 2017-07-20 09:03:00,988 ERROR [main] o.a.nifi.controller.StandardFlowService 
> Failed to load flow from cluster due to: 
> org.apache.nifi.cluster.ConnectionException: Failed to connect node to 
> cluster due to: java.lang.NullPointerException
> org.apache.nifi.cluster.ConnectionException: Failed to connect node to 
> cluster due to: java.lang.NullPointerException
>       at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:945)
>       at 
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:515)
>       at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:800)
>       at org.apache.nifi.NiFi.<init>(NiFi.java:160)
>       at org.apache.nifi.NiFi.main(NiFi.java:267)
> Caused by: java.lang.NullPointerException: null
>       at 
> org.apache.nifi.controller.repository.RepositoryRecordSerde.getRecordIdentifier(RepositoryRecordSerde.java:43)
>       at 
> org.apache.nifi.controller.repository.RepositoryRecordSerde.getRecordIdentifier(RepositoryRecordSerde.java:26)
>       at 
> org.wali.MinimalLockingWriteAheadLog$Partition.recoverNextTransaction(MinimalLockingWriteAheadLog.java:1132)
>       at 
> org.wali.MinimalLockingWriteAheadLog.recoverFromEdits(MinimalLockingWriteAheadLog.java:459)
>       at 
> org.wali.MinimalLockingWriteAheadLog.recoverRecords(MinimalLockingWriteAheadLog.java:301)
>       at 
> org.apache.nifi.controller.repository.WriteAheadFlowFileRepository.loadFlowFiles(WriteAheadFlowFileRepository.java:381)
>       at 
> org.apache.nifi.controller.FlowController.initializeFlow(FlowController.java:713)
>       at 
> org.apache.nifi.controller.StandardFlowService.initializeController(StandardFlowService.java:955)
>       at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:927)
>       ... 4 common frames omitted



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to