Repository navigation
Run the change-offering migrate and resize only once - #14760
Open
bhouse-nexthop wants to merge 1 commit into
Open
bhouse-nexthop wants to merge 1 commit into
bhouse-nexthop wants to merge 1 commit into
Conversation
changeDiskOfferingForVolumeInternal on main carried its tail block twice: the no-op check, the migrate step and the resize step. The 4.22 merge 82bfa9f kept both main's copy and 4.22's copy when it wrapped the method in the reservation try/finally from 9c0c8da. - An offering change that needed a migration migrated the volume twice, the second time to a pool picked from the pool list computed before the first move. - An offering change that needed a resize resized twice. - Kept the first copy: it carries main's newer error messages from bc76f20 (apache#12367). The removed copy is 4.22's older text. - Added a test that a change needing migration and resize calls migrateVolume and resizeVolumeInternal once each. Signed-off-by: Brad House <bhouse@nexthop.ai>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14760 +/- ##
============================================
+ Coverage 20.80% 20.82% +0.01%
- Complexity 20919 20924 +5
============================================
Files 6053 6053
Lines 548451 548420 -31
Branches 78719 73271 -5448
============================================
+ Hits 114128 114185 +57
+ Misses 420958 420856 -102
- Partials 13365 13379 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 22, 2026
Open
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #14759
changeDiskOfferingForVolumeInternalonmainran its tail twice: the no-op check, the migrate step and the resize step. Merge 82bfa9f produced the second copy when it resolved 9c0c8da's reservationtry/finallyfrom 4.22.changeDiskOfferingForVolumeInternalMigratesAndResizesOncemigrateVolumeto the chosen pool with the new offering, and oneresizeVolumeInternalAffects
mainand 4.23.0.0; 4.22 is not affected. #14752 (4.22) edits this block, and once this lands its merge forward tomainonly has one copy to update.Types of changes
Bug Severity
How Has This Been Tested?
migrateVolumewanted 1 time, was 2VolumeApiServiceImplTestafter the fix (mvn -pl server -am)