Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5713 Add a disk balancer for datanode
  3. HDDS-10304

[DiskBalancer] Start command - Fix nodes not being processed and incorrect config values

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • Ozone CLI, SCM

    Description

      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<field> 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.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: