Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
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.