Skip to content

engine: fix flaky shard evacuate test#3605

Merged
roman-khimov merged 1 commit intomasterfrom
3516-flaky-storage-evacuation-unit-test
Sep 30, 2025
Merged

engine: fix flaky shard evacuate test#3605
roman-khimov merged 1 commit intomasterfrom
3516-flaky-storage-evacuation-unit-test

Conversation

@End-rey
Copy link
Contributor

@End-rey End-rey commented Sep 29, 2025

Closes #3516.

The test only monitors the last shard and stops when it reaches the target
count, but doesn't ensure uniform distribution across all shards. So, there is
situation when all 5 objects ended up in the 4th shard (the non-evacuated one),
while the first 3 shards (being evacuated) were empty. Since the engine check
guarantees that the last shard definitely has objects, we include it in the
evacuation list.

Closes #3516.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@codecov
Copy link

codecov bot commented Sep 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 26.70%. Comparing base (42a946a) to head (716e82e).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3605      +/-   ##
==========================================
+ Coverage   26.69%   26.70%   +0.01%     
==========================================
  Files         655      655              
  Lines       49749    49744       -5     
==========================================
+ Hits        13281    13286       +5     
+ Misses      35420    35412       -8     
+ Partials     1048     1046       -2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@roman-khimov roman-khimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be solved with pushing as many objects as needed to get objPerShard for all shards (maybe other tests have some assumptions as well), but one is OK to fix the test as well.

@roman-khimov roman-khimov merged commit 582380b into master Sep 30, 2025
22 checks passed
@roman-khimov roman-khimov deleted the 3516-flaky-storage-evacuation-unit-test branch September 30, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky storage evacuation unit test

3 participants