steveloughran commented on pull request #3101:
URL: https://github.com/apache/hadoop/pull/3101#issuecomment-868540988


   > listFilesAndDirs a new RemoteIterator similar to listFiles that includes 
LocatedFileStatus for directories too. It's handy when we want to detect empty 
directories;
   
   -1 to that change. 
   
   Making FS changes is a big thing with more trauma and planning. See the 
comments at the top of FileSystem.java. 
   Any new list operation should
   * support multiple dirs (for faster partition scanning)
   * builder API for any specific options
   * return a list of Future<>s to make clear that list can be slow & return 
dirs out of order
   * has high performance impl for HDFS/webHDFS as well as "S3A And ABFS object 
stores (could just relay to BatchListingOperations & so existing results.)
   * Plus all the spec/contract work. 
   
   See HADOOP-16898 for discussion there.
   
   It's not trivial -we need to think about "what is the best list model for 
the future?".
   


-- 
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: [email protected]

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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to