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 GetPartitionMetadataMultiBrokerTest.testCompatibilityDifferentBrokersForNonPersistentTopic #23259

Merged

Conversation

hanmz
Copy link
Contributor

@hanmz hanmz commented Sep 5, 2024

Motivation

image

The root cause of this problem is that the getBroker method is asynchronous. When the method getLookupRequestPermits is called, the lookupRequestSemaphore may not have been released yet.

Modifications

Wait for the getBroker method to complete before continuing

Documentation

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

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 5, 2024
@hanmz
Copy link
Contributor Author

hanmz commented Sep 23, 2024

@Technoboy- PLAT~

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 fixing @hanmz

@lhotari lhotari closed this Oct 9, 2024
@lhotari lhotari reopened this Oct 9, 2024
@lhotari lhotari added type/flaky-tests release/blocker Indicate the PR or issue that should block the release until it gets resolved labels Oct 9, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.28%. Comparing base (bbc6224) to head (91aa7f9).
Report is 654 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #23259      +/-   ##
============================================
+ Coverage     73.57%   74.28%   +0.70%     
- Complexity    32624    34873    +2249     
============================================
  Files          1877     1949      +72     
  Lines        139502   146867    +7365     
  Branches      15299    16168     +869     
============================================
+ Hits         102638   109094    +6456     
- Misses        28908    29359     +451     
- Partials       7956     8414     +458     
Flag Coverage Δ
inttests 27.50% <ø> (+2.91%) ⬆️
systests 24.35% <ø> (+0.03%) ⬆️
unittests 73.64% <ø> (+0.80%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 627 files with indirect coverage changes

@lhotari lhotari merged commit c891eaa into apache:master Oct 9, 2024
55 checks passed
@lhotari lhotari added this to the 4.0.0 milestone Oct 14, 2024
lhotari pushed a commit that referenced this pull request Oct 14, 2024
…bilityDifferentBrokersForNonPersistentTopic (#23259)

(cherry picked from commit c891eaa)
lhotari pushed a commit that referenced this pull request Oct 14, 2024
…bilityDifferentBrokersForNonPersistentTopic (#23259)

(cherry picked from commit c891eaa)
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Oct 15, 2024
…bilityDifferentBrokersForNonPersistentTopic (apache#23259)

(cherry picked from commit c891eaa)
(cherry picked from commit cddb3ac)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Oct 16, 2024
…bilityDifferentBrokersForNonPersistentTopic (apache#23259)

(cherry picked from commit c891eaa)
(cherry picked from commit cddb3ac)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-picked/branch-3.0 cherry-picked/branch-3.3 doc-not-needed Your PR changes do not impact docs release/blocker Indicate the PR or issue that should block the release until it gets resolved release/3.0.8 release/3.3.3 type/flaky-tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants