Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-8346. ContainerBalancer should move only CLOSED replicas #4560

Merged
merged 1 commit into from Apr 12, 2023

Conversation

siddhantsangwan
Copy link
Contributor

What changes were proposed in this pull request?

Currently, Container Balancer checks if a container is CLOSED, but does not check whether the replica being moved is also CLOSED. This should be checked to be consistent with ReplicationManager and avoid moving any un CLOSED replicas.

Change made: When selecting candidate containers (eligible for being moved because they satisfy selection criteria) from a source DN, filter out containers whose replica on that source is non CLOSED.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-8346

How was this patch tested?

Added UT.
Draft while waiting for CI in my fork: https://github.com/siddhantsangwan/ozone/actions/runs/4678046422

Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

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

LGTM if we get green CI.

@adoroszlai adoroszlai marked this pull request as ready for review April 12, 2023 15:03
@adoroszlai adoroszlai merged commit 7075a96 into apache:master Apr 12, 2023
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants