turcsanyip commented on a change in pull request #3966: NIFI-6992 - Add "Batch 
Size" property to GetHDFSFileInfo processor
URL: https://github.com/apache/nifi/pull/3966#discussion_r365187489
 
 

 ##########
 File path: 
nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/GetHDFSFileInfo.java
 ##########
 @@ -183,9 +186,8 @@
             .name("gethdfsfileinfo-batch-size")
             .description("Number of records to put into an output flowfile 
when 'Destination' is set to 'Content'"
                 + " and 'Group Results' is set to 'None'")
-            .required(true)
-            .addValidator(StandardValidators.NON_NEGATIVE_INTEGER_VALIDATOR)
-            .defaultValue("1")
+            .required(false)
+            
.addValidator(StandardValidators.createAllowEmptyValidator(StandardValidators.NON_NEGATIVE_INTEGER_VALIDATOR))
 
 Review comment:
   POSITIVE_INTEGER_VALIDATOR seems to me more reasonable here.
   "0" falls back to batch size = 1, but it might not be straightforward / 
obvious for the end user.
   The batch size properties of the other processors also have 1 as their lower 
bound.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to