Repository navigation
Fix flaky test ConsumedLedgersTrimTest.testConsumedLedgersTrimNoSubscriptions - #9420
Merged
Merged
Conversation
lhotari
requested changes
Feb 2, 2021
lhotari
requested changes
Feb 2, 2021
lhotari
approved these changes
Feb 2, 2021
Member
|
LGTM. Thanks for actively fixing flaky tests @315157973 ! |
eolivelli
approved these changes
Feb 2, 2021
eolivelli
left a comment
Contributor
There was a problem hiding this comment.
LGTM
@codelipenghui @jiazhai @wolfstudy PTAL
one step at a time we are fixing CI !
thank you @315157973
sijie
approved these changes
Feb 2, 2021
merlimat
approved these changes
Feb 2, 2021
zymap
approved these changes
Feb 3, 2021
Member
|
/pulsarbot run-failure-checks |
jiazhai
approved these changes
Feb 3, 2021
codelipenghui
approved these changes
Feb 5, 2021
merlimat
pushed a commit
to merlimat/pulsar
that referenced
this pull request
Apr 6, 2021
…riptions (apache#9420) Fixes apache#9409 ### Motivation After restarting, it takes time to load the topic, and this admin api will throw an exception when the topic cannot be queried. This problem can easily be triggered when this unit test is called in a loop. Therefore, I added a judgment to determine whether the topic is loaded. After that, I called it 100 times in a loop and no exception was seen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9409
Motivation
After restarting, it takes time to load the topic, and this admin api will throw an exception when the topic cannot be queried.
This problem can easily be triggered when this unit test is called in a loop. Therefore, I added a judgment to determine whether the topic is loaded. After that, I called it 100 times in a loop and no exception was seen.