Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-9343 Shift sortDatanodes logic to OM
  3. HDDS-10507

Revise NetworkTopology-based use cases to leverage custom equals() method

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • 2.0.0
    • None

    Description

      1. The changes introduced in PR: https://github.com/apache/ozone/pull/5391 involve reconstructing the hierarchical cluster tree object that represents the network topology on the Ozone Manager side.
      2. Under the NetworkTopology class, various operations employ the `==`/`!=` operator for comparison.
      3. However, this comparator needs to be modified to utilize the InnerNode#equals method instead. This adjustment is required as certain use cases, as described in (1), involve object reconstruction necessitating custom equality comparisons based on individual object attributes.

      Attachments

        Issue Links

          Activity

            People

              tanvipenumudy Tanvi Penumudy
              tanvipenumudy Tanvi Penumudy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: