-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDFS-17168. Support getTrashRoots API in WebHDFS #5992
Conversation
f651f6f
to
df0dc45
Compare
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
public static FileStatus toFileStatus(Map<?, ?> json) { | ||
Path path = new Path(getString(json, "path", "")); | ||
long length = getLong(json, "length", 0); | ||
boolean isdir = getBoolean(json, "isdir", 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.
Can "isdir" be a constant?
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 suggestion, I'll make the required code changes promptly
@zhtttylz Thank you for your contribution! The code looks fine. |
}.run(); | ||
return trashRoots; | ||
} catch (IOException e) { | ||
LOG.warn("Cannot get all trash roots", e); |
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.
warn ?
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'll make the required code changes promptly
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
@zhtttylz Thanks for your contribution! Merged into trunk. |
@slfan1989 Thank you for your assistance in reviewing the code! |
…buted by Hualong Zhang. Reviewed-by: Shilun Fan <slfan1989@apache.org> Signed-off-by: Shilun Fan <slfan1989@apache.org>
JIRA: HDFS-17168. Support getTrashRoots API in WebHDFS