-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16091. WebHDFS should support getSnapshotDiffReportListing. #3374
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. |
|
💔 -1 overall
This message was automatically generated. |
I filed HADOOP-17897 for this javac warnings |
This can not be addressed as far as we are using TreeList of commons-collections 3 which does not support type parameters. We are already ignoring same warning for DistributedFileSystem. |
|
Following junit tests are not related to WebHDFS. I could not reproduce the test failure on my local.
|
|
💔 -1 overall
This message was automatically generated. |
|
Thanks for working on this. I'll review soon. |
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSUtilClient.java
Outdated
Show resolved
Hide resolved
...hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/web/JsonUtilClient.java
Outdated
Show resolved
Hide resolved
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.
this is borrowed from DistributedFileSystem.
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 moved common logic to DFSUtilClient.
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.
this is by and large copied from DistributedFileSystem.getSnapshotDiffReportInternal()
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 moved common logic to DFSUtilClient.
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 would be nice to cache and remember this server does not support getSnapshotDiffReportListing.
Maybe as a follow-up enhancement.
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.
Let me do this in follow-up JIRA. I filed HDFS-16249.
|
💔 -1 overall
This message was automatically generated. |
jojochuang
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.
Hi @iwasakims There's a code conflict but i think we should get this in once the conflict is resolved. +1
… senario with multiple invocation of getSnapshotDiffReportListing in the test.
56f4524 to
f28da90
Compare
|
Thanks, @jojochuang. I rebased this. |
|
💔 -1 overall
This message was automatically generated. |
|
The failure of TestRouterDistCpProcedure is intermittent one. I could not reproduce the failure on my local. |
https://issues.apache.org/jira/browse/HDFS-16091
When there are millions of diffs between two snapshots, the old getSnapshotDiffReport() isn't scalable.
This PR adds GETSNAPSHOTDIFFLISTING op to NameNode WebHDFS API. WebHdfsFileSystem#getSnapshotDiffReport is fixed to leverage getSnapshotDiffReportListing in the same way as DistributedFileSystem#getSnapshotDiffReport.