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

[fix][test] Fix flaky SubscriptionSeekTest.testSeekIsByReceive #23170

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Aug 14, 2024

Motivation

The test SubscriptionSeekTest won't pass unless retries are enabled.

reproducing the issue:

mvn -DredirectTestOutputToFile=false -DtestRetryCount=0 test -pl pulsar-broker -Dtest=SubscriptionSeekTest

The test doesn't close consumers between test methods and that's why each method needs a unique topic.

Modifications

  • use unique topic name for testSeekIsByReceive method to prevent collisions
  • close producers and consumers between test methods

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

@lhotari lhotari added this to the 4.0.0 milestone Aug 14, 2024
@lhotari lhotari self-assigned this Aug 14, 2024
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Aug 14, 2024
@lhotari lhotari requested review from dao-jun and shibd August 15, 2024 18:46
@nodece nodece merged commit a1f3322 into apache:master Aug 16, 2024
59 of 60 checks passed
lhotari added a commit that referenced this pull request Aug 16, 2024
lhotari added a commit that referenced this pull request Aug 16, 2024
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 22, 2024
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Aug 23, 2024
grssam pushed a commit to grssam/pulsar that referenced this pull request Sep 4, 2024
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.

3 participants