mgaido91 commented on a change in pull request #3597: NIFI-6462 ListHDFS should
be triggerable
URL: https://github.com/apache/nifi/pull/3597#discussion_r305912315
##########
File path:
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/ListHDFS.java
##########
@@ -392,15 +404,22 @@ public void onTrigger(final ProcessContext context,
final ProcessSession session
for (final FileStatus status : listable) {
final Map<String, String> attributes = createAttributes(status);
- FlowFile flowFile = session.create();
- flowFile = session.putAllAttributes(flowFile, attributes);
+ FlowFile flowFile;
+ if(isTriggered){
Review comment:
```suggestion
if (isTriggered) {
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services