-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HDFS-16332. Handle invalid token exception in sasl handshake #3677
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
b6d00ae to
e0e7206
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
aajisaka
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 @bitterfox, thank you for your PR.
The fix itself is good to me, but I have a concern about compatibility. Would you please check the review comments?
...nt/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/DataTransferSaslUtil.java
Outdated
Show resolved
Hide resolved
hadoop-hdfs-project/hadoop-hdfs-client/src/main/proto/datatransfer.proto
Outdated
Show resolved
Hide resolved
.../src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferClient.java
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
.../src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferClient.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
.../src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferClient.java
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
.../src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferClient.java
Outdated
Show resolved
Hide resolved
|
💔 -1 overall
This message was automatically generated. |
aajisaka
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.
+1, I think the test failures are not related.
|
🎊 +1 overall
This message was automatically generated. |
|
Merged. Thank you @bitterfox for your contribution! |
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit dd6b987) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferServer.java
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit dd6b987) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferServer.java
Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit dd6b987) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferServer.java
…3677) Signed-off-by: Akira Ajisaka <[email protected]>
…handshake (apache#3677) Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit dd6b987) Conflicts: hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferServer.java
Description of PR
See https://issues.apache.org/jira/browse/HDFS-16332 description for the detail.
Due to missing handling of invalid token exception in sasl handshake, token refresh isn't triggered and all datanode is considered as dead nodes.
This causes retry of refetchLocations with sleep and we got bad hbase's response time.
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?