-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDFS-16834: Removes request stateID consistency constraint between clients in different connection pools. #5121
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. |
77cb052
to
002d019
Compare
🎊 +1 overall
This message was automatically generated. |
002d019
to
fcaf74c
Compare
💔 -1 overall
This message was automatically generated. |
…ients in different connection pools.
fcaf74c
to
ee6881d
Compare
🎊 +1 overall
This message was automatically generated. |
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.
@simbadzina Thanks for your report. This PR makes sense. Leave a minor comment.
.../src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestPoolAlignmentContext.java
Outdated
Show resolved
Hide resolved
ee49cea
to
2f092e6
Compare
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
2f092e6
to
c168888
Compare
🎊 +1 overall
This message was automatically generated. |
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.
LGTM
merged. Thanks @simbadzina for your contribution and thanks @tomscut for your review. |
…ients in different connection pools. (apache#5121) Reviewed-by: Tao Li <tomscut@apache.org> Signed-off-by: Zander Xu <zanderxu@apache.org>
…ients in different connection pools. (apache#5121) Reviewed-by: Tao Li <tomscut@apache.org> Signed-off-by: Zander Xu <zanderxu@apache.org>
…ients in different connection pools. (apache#5121) Reviewed-by: Tao Li <tomscut@apache.org> Signed-off-by: Zander Xu <zanderxu@apache.org> (Cherry-picked from 552ee44) ACLOVERRIDE
…ients in different connection pools. (apache#5121) Reviewed-by: Tao Li <tomscut@apache.org> Signed-off-by: Zander Xu <zanderxu@apache.org>
HDFS-16834: Removes request stateID consistency constraint between clients in different connection pools.
Description of PR
When sending requests to the namenode, we should only use the poolLocalStateId. Maxing it with the sharedGlobalStateId makes reads consistent across all clients using a router, which is not necessary and will lead to more waiting on the observer.
How was this patch tested?
Tests in TestObserverWithRouter still pass.
For code changes: