jnturton commented on code in PR #2632:
URL: https://github.com/apache/drill/pull/2632#discussion_r954781871


##########
exec/java-exec/src/main/java/org/apache/drill/exec/util/FileSystemUtil.java:
##########
@@ -302,12 +332,32 @@ protected List<FileStatus> compute() {
       List<RecursiveListing> tasks = new ArrayList<>();
 
       try {
-        for (FileStatus status : fs.listStatus(path, filter)) {
+        FileStatus[] dirFs = fs.listStatus(path, filter);
+        if (recursiveListingMaxSize > 0 && fileCounter.addAndGet(dirFs.length) 
> recursiveListingMaxSize) {
+          throw UserException

Review Comment:
   @vvysotskyi I've added an attempt to do that now.



-- 
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.

To unsubscribe, e-mail: dev-unsubscr...@drill.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to