HDDS-14213. Fix DiskBalancer VolumeChoosingPolicy to balance when dest volume exists but no src volume exceeds threshold#9587
Merged
Conversation
added 2 commits
January 5, 2026 14:40
…skBalancer volumechoosing policy
Contributor
Author
|
@ChenSammi and @szetszwo Please review the patch. |
szetszwo
reviewed
Jan 5, 2026
Contributor
szetszwo
left a comment
There was a problem hiding this comment.
@Gargi-jais11 , thanks for working on this!
Please see the comments inlined.
Contributor
Author
|
I have completed a comprehensive performance analysis comparing the Old Policy (O(N)Log(N)) vs. the New Policy (O(N^2)) across different cluster sizes (20, 100, and 200 volumes). Before optimisation: After optimisation: |
ChenSammi
reviewed
Jan 6, 2026
ChenSammi
reviewed
Jan 6, 2026
ChenSammi
reviewed
Jan 6, 2026
szetszwo
approved these changes
Jan 6, 2026
Contributor
szetszwo
left a comment
There was a problem hiding this comment.
@Gargi-jais11 , thanks for the update!
+1 the change looks good.
ChenSammi
reviewed
Jan 7, 2026
Contributor
|
Thanks @Gargi-jais11 , and @szetszwo for review. |
ChenSammi
approved these changes
Jan 7, 2026
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.
What changes were proposed in this pull request?
This PR handles the below case to be fixed:
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14213
How was this patch tested?
Added a new unit Test
TestDefaultVolumeChoosingPolicywhich covers below test scenarios: