dengzhhu653 commented on a change in pull request #1920: MAPREDUCE-7241. FileInputFormat listStatus with less memory footprint URL: https://github.com/apache/hadoop/pull/1920#discussion_r399768595
########## File path: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/input/FileInputFormat.java ########## @@ -364,13 +364,29 @@ protected void addInputPathRecursively(List<FileStatus> result, if (stat.isDirectory()) { addInputPathRecursively(result, fs, stat.getPath(), inputFilter); } else { - result.add(stat); + result.add(shrinkStatus(stat)); } } } } - - + + public static FileStatus shrinkStatus(FileStatus origStat) { Review comment: Thanks for reviewing this! Comments are added to clarify the changes. -- ---------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org