-
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 test LeaderElectionTest.revalidateLeaderWithinSameSession #22383
Conversation
pulsar-metadata/src/test/java/org/apache/pulsar/metadata/BaseMetadataStoreTest.java
Outdated
Show resolved
Hide resolved
@lhotari could you please review the pr |
This PR is 544 commits behind the master. Could you merge the master branch? |
@BewareMyPower I'll close and reopen this PR to trigger a new PR build. In Pulsar CI, the PR build will always merge the master branch before running the PR build. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22383 +/- ##
============================================
+ Coverage 73.57% 74.52% +0.95%
- Complexity 32624 34428 +1804
============================================
Files 1877 1934 +57
Lines 139502 144980 +5478
Branches 15299 15838 +539
============================================
+ Hits 102638 108049 +5411
+ Misses 28908 28646 -262
- Partials 7956 8285 +329
Flags with carried forward coverage won't be shown. Click here to find out more. |
…ameSession (apache#22383) (cherry picked from commit 216b830) (cherry picked from commit e63dcd4)
…ameSession (apache#22383) (cherry picked from commit 216b830) (cherry picked from commit e63dcd4)
Fixes #21535
Motivation
The test should Provide Consistent Answer .Test revalidateLeaderWithinSameSession failed too many times.
Modifications
We are calling the method once store the object and check both the conditions . In this way at both conditions we are checking the same Object.
Verifying this change
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: