-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][flaky-test] Fix and improve LookupRetryTest #17848
Conversation
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. Nice catch!
@coderzc although, can you explain a bit about how this patch fix the original issue? The original failure reports:
That doesn't directly related to the hash map. |
pulsar-broker/src/test/java/org/apache/pulsar/client/impl/LookupRetryTest.java
Outdated
Show resolved
Hide resolved
Oh, I haven't found the root cause of the original case for the time being, but when I have repeatedly executed |
…upRetryTest.java Co-authored-by: tison <[email protected]>
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
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
Fixes #17785
Motivation
The
failureMap
need to be clear after run per unit test.Modifications
Clear
failureMap
after run per unit test, and only run oncesetup()
/cleanup()
to reduce execution time.Documentation
doc-required
(Your PR needs to update docs and you will update later)
doc-not-needed
(Please explain why)
doc
(Your PR contains doc changes)
doc-complete
(Docs have been already added)
Matching PR in forked repository
PR in forked repository: coderzc#6