Github user zenfenan commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2681#discussion_r186485684
  
    --- Diff: 
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/MoveHDFS.java
 ---
    @@ -228,14 +232,17 @@ public void onScheduled(ProcessContext context) 
throws Exception {
     
         @Override
         public void onTrigger(ProcessContext context, ProcessSession session) 
throws ProcessException {
    -        // MoveHDFS
    -        FlowFile parentFlowFile = session.get();
    -        if (parentFlowFile == null) {
    +        FlowFile flowFile = session.get();
    +
    +        if (flowFile == null && context.hasIncomingConnection()) {
    +            context.yield();
    --- End diff --
    
    Thanks for pointing it out. I understand now. 


---

Reply via email to