Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7759 Improve Ozone Replication Manager
  3. HDDS-8358

Fix the space usage comparator in ContainerBalancerSelectionCriteria

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • SCM

    Description

      ContainerBalancerSelectionCriteria has a Comparator orderContainersByUsedBytes which is used for comparing containers on the basis of used space. This comparator calls isContainerMoreUsed, which does not have consistent behaviour when used space for two containers is equal.

      This bug was exposed when fixing the setup of TestContainerBalancerTask.
      createReplicasForContainers() in TestContainerBalancerTask creates additional container replicas but does not add them to datanodeToContainersMap, the map being used to track these. This jira intends to fix the bug and the test setup.

      Attachments

        Issue Links

          Activity

            People

              siddhant Siddhant Sangwan
              siddhant Siddhant Sangwan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: