Skip to content

[fix][test]Fix flaky test testTopicUnloadAfterSessionRebuild - #23852

Merged
dao-jun merged 2 commits into
apache:masterfrom
poorbarcode:flaky/testTopicUnloadAfterSessionRebuild
Jan 16, 2025
Merged

dao-jun merged 2 commits into
apache:masterfrom
poorbarcode:flaky/testTopicUnloadAfterSessionRebuild

Conversation

@poorbarcode

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

/pulsarbot rerun-failure-checks

@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, thanks for addressing the flaky test @poorbarcode

@dao-jun
dao-jun merged commit b3641f0 into apache:master Jan 16, 2025
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
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Jan 31, 2025
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Feb 3, 2025
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Feb 10, 2025
hanmz pushed a commit to hanmz/pulsar that referenced this pull request Feb 12, 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