Skip to content

Conversation

@sodonnel
Copy link
Contributor

@sodonnel sodonnel commented Feb 6, 2024

What changes were proposed in this pull request?

Fix various problems with the disk balancer start command:

  1. When using -a for all datanodes, the hosts appear as an empty list due to the way the protobuf is deserialized, resulting in no hosts getting processed.

  2. All the config values appear at zero, as if the proto value is not set for a double, it returns 0.0, so we need to check for has and set an optional or empty

  3. The isHealthy check needed negated, as it was excluding healthy nodes rather than unhealthy ones resulting in no nodes getting processed.

I also added a log message or two so we can have a record in the SCM log of the command being sent.

What is the link to the Apache JIRA

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

How was this patch tested?

Manually using docker compose. Prior to these changes the command would fail silently, but now SCM sends the command to the datanode.

@sodonnel sodonnel requested a review from symious February 6, 2024 14:30
Copy link
Contributor

@symious symious left a comment

Choose a reason for hiding this comment

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

LGTM.

@sodonnel sodonnel merged commit 7e40578 into apache:HDDS-5713 Feb 6, 2024
symious pushed a commit that referenced this pull request Mar 17, 2024
sadanand48 pushed a commit to sadanand48/hadoop-ozone that referenced this pull request Apr 17, 2024
sadanand48 pushed a commit to sadanand48/hadoop-ozone that referenced this pull request Apr 17, 2024
sadanand48 pushed a commit that referenced this pull request Apr 30, 2024
ChenSammi pushed a commit to ChenSammi/ozone that referenced this pull request Feb 19, 2025
ChenSammi pushed a commit to ChenSammi/ozone that referenced this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants