Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7731 Phase III: Erasure Coding followup tasks
  3. HDDS-7977

Use different types for healthy and unhealthy RatisReplicaCount classes

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • SCM
    • None

    Description

      Jira filed from this comment

      In HDDS-7847 a boolean was added to determine whether RatisContainerReplicaCount should account for unhealthy replicas or not. This changes the behavior of the class such that instances with the boolean set to true or false will behave differently. To prevent dev errors using an unhealthy instance when a healthy one is expected and vice-versa, it would be better to use inheritance and two separate types here instead of the boolean.

      As part of this task, we can also fork the RatisContainerReplicaCount for use with the Legacy RM so it does not hinder progress in the new RM which behaves differently.

      Attachments

        Activity

          People

            Unassigned Unassigned
            erose Ethan Rose
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: