[CELEBORN-2423] Fix rack-aware replica storage selection - #3803
[CELEBORN-2423] Fix rack-aware replica storage selection#3803Kalvin2077 wants to merge 2 commits into
Conversation
8b66c7c to
109235c
Compare
|
@zaynt4606 @SteNicholas |
|
@Kalvin2077 LGTM overall. One nit on test coverage: |
@yew1eb I've added offerSlotsRackAwareFallbackSkipsDisklessReplica to cover this path. It uses two partitions so the diskless candidate is scanned regardless of the randomized initial index, and verifies both replicas are allocated to the eligible disk-backed worker. Removing the canAssign guard causes the test to fail. PTAL. |
AI-Contributed/Feature: 0/0 AI-Contributed/UT: 0/26
0f577d2 to
55ecb31
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3803 +/- ##
============================================
- Coverage 58.74% 58.59% -0.14%
Complexity 231 231
============================================
Files 399 399
Lines 28058 28065 +7
Branches 2740 2745 +5
============================================
- Hits 16479 16443 -36
- Misses 10380 10418 +38
- Partials 1199 1204 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
What changes were proposed in this pull request?
This follow-up to PR #3781:
StorageInfofrom the selected replica worker.Why are the changes needed?
During best-effort fallback, the allocator could select a diskless worker for a local-disk replica or incorrectly reuse the primary worker's mount point.
Does this PR resolve a correctness bug?
Does this PR introduce any user-facing change?
How was this patch tested?
build/mvn -pl master -am -Dtest=SlotsAllocatorRackAwareSuiteJ test