Skip to content
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

HDDS-2643. TestOzoneDelegationTokenSecretManager#testRenewTokenFailureRenewalTime fails intermittently #6688

Merged
merged 2 commits into from
May 17, 2024

Conversation

raju-balpande
Copy link
Contributor

What changes were proposed in this pull request?

TestOzoneDelegationTokenSecretManager#testRenewTokenFailureRenewalTime fails intermittently

There is 'OzoneDelegationTokenSecretManager.run()' check every five seconds(or lesser if value is configured) for the expired tokens to be removed from the cache and in rare scenario if our thread doesn't get control before it, the expired token may get out of cache and hence will have to consider this as a valid scenario. I have modified the code to accommodate that condition. We are testing the exceptions to be thrown as part of this test method.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-2643

How was this patch tested?

Tested the modified code with 500 runs having 25 splits and 20 iterations, it is working 100% fine https://github.com/raju-balpande/apache_ozone/actions/runs/9114752214

Copy link
Contributor

@sadanand48 sadanand48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@sadanand48 sadanand48 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @raju-balpande for the fix.

@sadanand48 sadanand48 merged commit fe4a210 into apache:master May 17, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants