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 test testTopicUnloadAfterSessionRebuild #23852

Merged

Conversation

poorbarcode
Copy link
Contributor

Fixes #23389

Motivation

  • pulsar1.getBrokerService().getTopic(topicName, false) may return a completed empty future, but the verify assertTrue(future == null || future.isCompletedExceptionally()) does not match

Modifications

  • Increase timeout to wait for the broker to start
  • correct the logic of the verification above
  • add more logs

Documentation

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

Matching PR in forked repository

PR in forked repository: x

@poorbarcode poorbarcode self-assigned this Jan 15, 2025
@poorbarcode poorbarcode requested a review from shibd January 15, 2025 02:52
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 15, 2025
@poorbarcode poorbarcode added release/3.0.9 release/3.3.5 release/4.0.3 and removed doc-not-needed Your PR changes do not impact docs labels Jan 15, 2025
@poorbarcode poorbarcode added this to the 4.1.0 milestone Jan 15, 2025
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Jan 15, 2025
@poorbarcode poorbarcode requested a review from lhotari January 15, 2025 02:54
@poorbarcode
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

Copy link
Member

@lhotari lhotari left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for addressing the flaky test @poorbarcode

@dao-jun dao-jun merged commit b3641f0 into apache:master Jan 16, 2025
60 checks passed
lhotari pushed a commit that referenced this pull request Jan 16, 2025
lhotari pushed a commit that referenced this pull request Jan 17, 2025
lhotari pushed a commit that referenced this pull request Jan 17, 2025
poorbarcode added a commit to poorbarcode/pulsar that referenced this pull request Jan 23, 2025
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: ZkSessionExpireTest.testTopicUnloadAfterSessionRebuild
4 participants