-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][test] Fix flaky GetPartitionMetadataMultiBrokerTest.testCompatibilityDifferentBrokersForNonPersistentTopic #23259
Conversation
…bilityDifferentBrokersForNonPersistentTopic
...broker/src/test/java/org/apache/pulsar/broker/admin/GetPartitionMetadataMultiBrokerTest.java
Show resolved
Hide resolved
@Technoboy- PLAT~ |
There was a problem hiding this 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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more. |
…bilityDifferentBrokersForNonPersistentTopic (apache#23259) (cherry picked from commit c891eaa) (cherry picked from commit cddb3ac)
…bilityDifferentBrokersForNonPersistentTopic (apache#23259) (cherry picked from commit c891eaa) (cherry picked from commit cddb3ac)
Motivation
The root cause of this problem is that the
getBroker
method is asynchronous. When the methodgetLookupRequestPermits
is called, thelookupRequestSemaphore
may not have been released yet.Modifications
Wait for the
getBroker
method to complete before continuingDocumentation
doc
doc-required
doc-not-needed
doc-complete