-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16216. RBF: Wrong path when get mount point status #3415
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. |
|
Hi @brahmareddybattula , could you help for review this path in your free time? Thank you |
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.
We should remove this unused import.
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 for your review! It is deleted now.
697004f to
8272a94
Compare
|
🎊 +1 overall
This message was automatically generated. |
| date = dates.get(src); | ||
| } | ||
| ret = getMountPointStatus(src, children.size(), date); | ||
| ret = getMountPointStatus(src, children.size(), date, false); |
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.
It looks like false is kind of the exception for this method.
Can we keep the old signature with true as the default?
| Path childPath3 = new Path(src3, child3); | ||
| HdfsFileStatus dirStatus3 = | ||
| clientProtocol.getMountPointStatus(childPath3.toString(), 0, 0, false); | ||
| assertTrue(dirStatus3.getLocalName().length() == 0); |
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.
assertEquals
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.
I think there's also isEmpty() for the string.
Could we also check for some other attribute other than getLocalName()?
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
Description of PR
https://issues.apache.org/jira/browse/HDFS-16216
How was this patch tested?
UT. TestRouterMountTable.testGetMountPointFileStatus
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?