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 flaky test SegmentReplicationAllocationIT.testAllocationAndRebalanceWithDisruption #17429

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ltaragi
Copy link
Contributor

@ltaragi ltaragi commented Feb 23, 2025

Description

  • This change fixes the flaky nature of SegmentReplicationAllocationIT.testAllocationAndRebalanceWithDisruption IT.
  • In the original test, we needed to make sure that the cluster had more no. of data nodes than the number of shard copies but it was not actually a guarantee leading to the flaky nature of tests.
  • We are now pre-generating the random index/shard counts and then spawning the data nodes accordingly.
  • Also decreased the upper limit on number of indices because original limit would have caused spawning of as high as 60 data nodes (10 * 2 * (1 + 2)) which was causing transport related failures unrelated to the scope of the test.
  • Tested the new changes with ~3.4K consecutive IT runs without any failures
BUILD SUCCESSFUL in 18s
60 actionable tasks: 1 executed, 59 up-to-date
[2025-02-22 23:19:08] : ===================================================================
[2025-02-22 23:19:08] : counter=3412
[2025-02-22 23:19:08] : ===================================================================

Related Issues

Partially resolves #14327

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Lakshya Taragi <[email protected]>
Signed-off-by: Lakshya Taragi <[email protected]>
Signed-off-by: Lakshya Taragi <[email protected]>
Copy link
Contributor

✅ Gradle check result for b799100: SUCCESS

Copy link

codecov bot commented Feb 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.46%. Comparing base (8447737) to head (b799100).
Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17429      +/-   ##
============================================
- Coverage     72.48%   72.46%   -0.02%     
- Complexity    65637    65667      +30     
============================================
  Files          5303     5303              
  Lines        304793   304793              
  Branches      44202    44202              
============================================
- Hits         220926   220879      -47     
- Misses        65711    65869     +158     
+ Partials      18156    18045     -111     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ltaragi ltaragi changed the title Flaky segment replication allocation it Fix flaky test SegmentReplicationAllocationIT.testAllocationAndRebalanceWithDisruption Feb 24, 2025
@github-actions github-actions bot added >test-failure Test failure from CI, local build, etc. autocut flaky-test Random test failure that succeeds on second run good first issue Good for newcomers Storage Issues and PRs relating to data and metadata storage Storage:Remote labels Feb 24, 2025
@ltaragi ltaragi marked this pull request as ready for review February 24, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut flaky-test Random test failure that succeeds on second run good first issue Good for newcomers skip-changelog Storage:Remote Storage Issues and PRs relating to data and metadata storage >test-failure Test failure from CI, local build, etc.
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

[AUTOCUT] Gradle Check Flaky Test Report for SegmentReplicationAllocationIT
1 participant