HDDS-10870. moveSelectionToFutureMap cleanup when future complete#6746
Merged
siddhantsangwan merged 1 commit intoapache:masterfrom Jun 10, 2024
Merged
Conversation
siddhantsangwan
approved these changes
Jun 5, 2024
Contributor
siddhantsangwan
left a comment
There was a problem hiding this comment.
Thanks for the patch @guohao-rosicky. LGTM.
| moveSelectionToFutureMap.values(); | ||
| if (!futures.isEmpty()) { | ||
| CompletableFuture<Void> allFuturesResult = CompletableFuture.allOf( | ||
| futures.toArray(new CompletableFuture[futures.size()])); |
Contributor
There was a problem hiding this comment.
Intellij recommends changing this to
CompletableFuture.allOf(
futures.toArray(new CompletableFuture[0]));
Contributor
|
Merging, we can handle the comment in a different jira if required. |
jojochuang
pushed a commit
to jojochuang/ozone
that referenced
this pull request
Jun 15, 2024
…ache#6746) (cherry picked from commit 0697045)
jojochuang
pushed a commit
to jojochuang/ozone
that referenced
this pull request
Jun 17, 2024
ptlrs
pushed a commit
to ptlrs/ozone
that referenced
this pull request
Mar 8, 2025
…DDS-10870 (apache#221) * CDPD-65217. HDDS-10085. Improve method name in ContainerBalancerSelectionCriteria (apache#5957) (cherry picked from commit b932e16) * CDPD-65645. HDDS-10160. Cache sort results in ContainerBalancerSelectionCriteria (apache#6050) (cherry picked from commit 95666eb) * CDPD-52140. HDDS-7252. Polled source Datanodes are wrongly not re-considered for balancing in Container Balancer (apache#6305) (cherry picked from commit fdc38b5) * CDPD-70112. HDDS-10869. SCMNodeManager#getUsageInfo memory occupancy optimization (apache#6737) (cherry picked from commit 39baf0f) * CDPD-70110. HDDS-10871. ContainerBalancerSelectionCriteria memory occupancy optimization (apache#6738) (cherry picked from commit 19d4419) * CDPD-70111. HDDS-10870. moveSelectionToFutureMap cleanup when future complete (apache#6746) (cherry picked from commit 4f02853) * CDPD-78919. HDDS-12231. Logging in Container Balancer is too verbose. (apache#7826) (cherry picked from commit 371792f) --------- Conflicts: 1. Forced to include CDPD-65217 (minor commit that only changes a method name) and CDPD-52140 to resolve conflicts. No major changes made. 2. Had to change a test method to use the full Assertions.assertEquals instead of just assertEquals. 3. CDPD-70111 - had to merge manually to exclude changes from other unrelated commits in ContainerBalancerTask. --------- Co-authored-by: Siddhant Sangwan <siddhantsangwan027@gmail.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Tejaskriya <87555809+Tejaskriya@users.noreply.github.com> Co-authored-by: hao guo <ghttywhk@126.com>
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?
moveSelectionToFutureMap cleanup when future complete
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10870