-
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
HADOOP-18824. ZKDelegationTokenSecretManager causes ArithmeticException due to improper numRetries value checking #6052
Conversation
💔 -1 overall
This message was automatically generated. |
LGTM.
Would you mind to add this case as unit test to cover it? Thanks. |
I added a test with the same logic as |
🎊 +1 overall
This message was automatically generated. |
…on due to improper numRetries value checking (apache#6052)
Description of PR
https://issues.apache.org/jira/browse/HADOOP-18824
This PR hardcoded the sleeping time between retry to 0 when the retry time is 0 to avoid division by zero.
How was this patch tested?
zk-dt-secret-manager.zkNumRetries=0
org.apache.hadoop.security.token.delegation.TestZKDelegationTokenSecretManager.testMultiNodeOperations
The test passes rather than throwing division by zero.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?