SPARK-21817 was opened to fix a NPE in Spark where it calls LocatedFileStatus with a null FSPermission. This breaks in current HEAD. However, the LocatedFileStatus is a stable/evolving API so this is actually a regression introduced in HDFS-6984.
Pass FSPermissions to LocatedFileStatus from InMemoryFileIndex
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #12237 (See https://builds.apache.org/job/Hadoop-trunk-Commit/12237/)
HDFS-12344. LocatedFileStatus regression: no longer accepting null (stevel: rev 8196a07c3211385ce85ae24f763b62696edc60b9)
committed to trunk, after fixing that whitespace complaint
javac issue is because i introduced a new call to a deprecated function. Of course, this is the purpose of the patch.
This message was automatically generated.
Attaching updated patch based on Steve Loughran's comments.
regarding the tests; get rid of the try/catch/fail blocks, that just loses a stack trace which will be needed to fix the bug. Just declare the test as throwing Exception and send it all the way up, uncaught
Ewan. hit the "submit patch" button...
Attaching a failing test and the fix. Steve Loughran and/or Chris Douglas can review.