-
Notifications
You must be signed in to change notification settings - Fork 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-16861. RBF. Truncate API always fails when dirs use AllResolver oder on Router #5184
Conversation
🎊 +1 overall
This message was automatically generated. |
@tomscut Would you have some time to review it? Thank you! |
...rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAllResolver.java
Outdated
Show resolved
Hide resolved
...-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterClientProtocol.java
Show resolved
Hide resolved
💔 -1 overall
This message was automatically generated. |
Jenkins script has failed with code 125. It seems that it has nothing to do with the patch. Please help me run tests again @tomscut |
Sorry for the delay. You can push an empty-commit to trigger the jenkins. |
if (rpcServer.isInvokeConcurrent(src)) { | ||
return !rpcClient.invokeConcurrent(locations, method, Boolean.class) | ||
.containsValue(false); | ||
if (rpcServer.isPathAll(src)) { |
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 change will affect the original logic.
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 the logic of setReplication
api should be consistent with delete
api. This change will ok.
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.
And I have add setReplication
unit tests and It run well.
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 the logic of
setReplication
api should be consistent withdelete
api. This change will ok.
This will be a problem if the path is a mount point. Or you could roll back the change for setReplication
and open a new JIRA for it. If only the truncate
is changed, I will +1.
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.
Sorry for my late reply. I got sick last week. I have roll back the change for setReplicaion
and will open a new JIRA for it.
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 @Neilxzn for updating this.
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
...rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAllResolver.java
Outdated
Show resolved
Hide resolved
...rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAllResolver.java
Show resolved
Hide resolved
2. add unit test assertDirsEverywhere & assertFilesDistributed 3. remove RouterClientProtocol's setReplica changes
🎊 +1 overall
This message was automatically generated. |
Description of PR
https://issues.apache.org/jira/browse/HDFS-16861
How was this patch tested?
add truncate api test in TestRouterAllResolver
For code changes:
in RouterClientProtocol