Skip to content

Fix flaky test ConsumedLedgersTrimTest.testConsumedLedgersTrimNoSubscriptions - #9420

Merged
codelipenghui merged 3 commits into
apache:masterfrom
315157973:flaky-1
Feb 5, 2021
Merged

codelipenghui merged 3 commits into
apache:masterfrom
315157973:flaky-1

Conversation

@315157973

Copy link
Copy Markdown
Contributor

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.

@lhotari

lhotari commented Feb 2, 2021

Copy link
Copy Markdown
Member

LGTM. Thanks for actively fixing flaky tests @315157973 !

@lhotari lhotari left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@codelipenghui @jiazhai @wolfstudy PTAL

one step at a time we are fixing CI !

thank you @315157973

@sijie sijie added this to the 2.8.0 milestone Feb 2, 2021
@zymap

zymap commented Feb 3, 2021

Copy link
Copy Markdown
Member

/pulsarbot run-failure-checks

@codelipenghui
codelipenghui merged commit ca8a23f into apache:master Feb 5, 2021
@315157973
315157973 deleted the flaky-1 branch February 23, 2021 13:01
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky-test: org.apache.pulsar.broker.service.ConsumedLedgersTrimTest.testConsumedLedgersTrimNoSubscriptions

8 participants