eduardofontes commented on a change in pull request #4281:
URL: https://github.com/apache/nifi/pull/4281#discussion_r426320799



##########
File path: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/RunMongoAggregation.java
##########
@@ -194,6 +199,8 @@ public void onTrigger(ProcessContext context, 
ProcessSession session) throws Pro
 
             if (batch.size() > 0) {
                 writeBatch(buildBatch(batch), flowFile, context, session, 
attrs, REL_RESULTS);
+            } else {

Review comment:
       I've reviewed my logic and I found a flaw. Something could be processed 
in the while loop and in the end the batch is empty. In this case I can't 
redirect to EMPTY. I've fixed this including a control flag "doneSomething".




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to