Hexiaoqiao commented on code in PR #7859: URL: https://github.com/apache/hadoop/pull/7859#discussion_r2262350097
########## hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileInputFormat.java: ########## @@ -369,6 +369,9 @@ public InputSplit[] getSplits(JobConf job, int numSplits) } else { blkLocations = fs.getFileBlockLocations(file, 0, length); } + if (blkLocations.length == 0){ Review Comment: Thanks for your contributions. Just wonder why it will meet `length != 0` but `blkLocations.length == 0`, some corner case that lead inconsistent metadata of NameNode? -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org