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 LeaderElectionTest.revalidateLeaderWithinSameSession #22383

Merged
merged 3 commits into from
Sep 23, 2024

Conversation

nikam14
Copy link
Contributor

@nikam14 nikam14 commented Mar 29, 2024

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

  • Make sure that the change passes the CI checks.

Documentation

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

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 29, 2024
@nikam14 nikam14 requested a review from hanmz August 26, 2024 17:12
@nikam14
Copy link
Contributor Author

nikam14 commented Sep 23, 2024

@lhotari could you please review the pr

@BewareMyPower
Copy link
Contributor

This PR is 544 commits behind the master. Could you merge the master branch?

@lhotari
Copy link
Member

lhotari commented Sep 23, 2024

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.

@lhotari lhotari closed this Sep 23, 2024
@lhotari lhotari reopened this Sep 23, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.52%. Comparing base (bbc6224) to head (d45a1bc).
Report is 595 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             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     
Flag Coverage Δ
inttests 27.54% <ø> (+2.96%) ⬆️
systests 24.52% <ø> (+0.20%) ⬆️
unittests 73.88% <ø> (+1.03%) ⬆️

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

see 635 files with indirect coverage changes

@lhotari lhotari merged commit 216b830 into apache:master Sep 23, 2024
53 checks passed
lhotari pushed a commit that referenced this pull request Sep 23, 2024
lhotari pushed a commit that referenced this pull request Sep 23, 2024
@nikam14 nikam14 deleted the testing branch September 24, 2024 07:33
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 26, 2024
…ameSession (apache#22383)

(cherry picked from commit 216b830)
(cherry picked from commit e63dcd4)
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Sep 26, 2024
…ameSession (apache#22383)

(cherry picked from commit 216b830)
(cherry picked from commit e63dcd4)
@lhotari lhotari added this to the 4.0.0 milestone Oct 14, 2024
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: LeaderElectionTest.revalidateLeaderWithinSameSession
5 participants