-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-15532: listFiles on root/InternalDir will fail if fallback root has file. #2298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| String leafChild = (InodeTree.SlashPath.equals(fs.getPath())) ? | ||
| InodeTree.SlashPath.toString() : | ||
| fs.getPath().getName(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(InodeTree.SlashPath.equals(fs.getPath()))
In which case this would be true? Provided there is a check in the if condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ayushtkn for review! I have removed this redundant condition.
I realized that, this bug exist in ViewFs as well. I fixed and added a test case for it. Thanks
|
💔 -1 overall
This message was automatically generated. |
ayushtkn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanx @umamaheswararao for the update. Changes LGTM
+1
…has file. (apache#2298). Contributed by Uma Maheswara Rao G. (cherry picked from commit d2779de) Change-Id: Ia4e67ec4a77f11d5250aabcb117db37a6c699818 (cherry picked from commit c04653a)
https://issues.apache.org/jira/browse/HDFS-15532