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

Mark Payne commented on NIFI-3566:
----------------------------------

OK gotcha, thanks [~devriesb]. So there are kind of two issues for this Jira, 
if I am understanding correctly. (1) There was a problem where the node failed 
to pull the flow from NCM and ended up with an empty flow. I don't believe that 
is a problem in 1.x. (2) If the node does end up with an empty flow, it blows 
away the data. This is still a concern with 1.x.

This second issue, though, ties together with NIFI-7706 and NIFI-5702. Since 
those are both being addressed in 1.12.0, I think this makes sense to close 
this Jira.

Do you agree? Or have I misunderstood?

> Node fails to pull flow.xml from NCM, purges content repo
> ---------------------------------------------------------
>
>                 Key: NIFI-3566
>                 URL: https://issues.apache.org/jira/browse/NIFI-3566
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.7.1
>            Reporter: Brandon Rhys DeVries
>            Priority: Minor
>
> We have an instance were a node was removed from a cluster to address a 
> production data flow issue.  During this process, changes were made such that 
> it's flow.xml was different from the cluster (different run states).  The 
> general procedure we follow in this case is to remove the Node's flow.xml, 
> and let is pull the "correct" / consistent one from the NCM.   However, in 
> this case, something prevented the NCM's flow.xml from propagating to the 
> Node.  the Node ended up with an empty flow.xml... and then proceeded to 
> purge all of the content repo with the warning "{} maps to unknown FlowFile 
> Queue {}; this record will be discarded"\[1].
> In cases like this, we should see if we can be a bit more friendly.  
> Specifically, in our case, it would have been preferable to shut down rather 
> than delete the content repo.  It would seem to me that if an admin 
> intentionally removes the flow.xml, it would not be unreasonable to make it  
> their responsibility to also remove the content repo (and possibly 
> others...).  But cases in which a network hiccup can cause 100% data loss on 
> a node seem bad.
> \[1] 
> https://github.com/apache/nifi/blob/rel/nifi-0.7.1/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/WriteAheadFlowFileRepository.java#L717



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to