sodonnel commented on PR #12048: URL: https://github.com/apache/ozone/pull/12048#issuecomment-6976001572
The jira here pointed to [HDDS-17225](https://issues.apache.org/jira/browse/HDDS-17225) where now there isn’t a single under_replicated state in RM any more. We have these cross product states - under_replicated, qc_under_replicated, missing_under_replicated … This now bleeds into any other part of the system that just wanted to check “is it under replicated”: ``` - boolean replicatedOK = report.getStat(ContainerHealthState.UNDER_REPLICATED) == 0; + boolean replicatedOK = report.getStat(ContainerHealthState.UNDER_REPLICATED) == 0 + && report.getStat(ContainerHealthState.UNHEALTHY_UNDER_REPLICATED) == 0 + && report.getStat(ContainerHealthState.MISSING_UNDER_REPLICATED) == 0 + && report.getStat(ContainerHealthState.QUASI_CLOSED_STUCK_UNDER_REPLICATED) == 0; ``` This is really messy. Even as it stands UNDER_REPLICATED on its own looks like its the super set of *under_replicated, but it isn’t - its a distinct state by itself. While the fix here is simple, I think the real fix is to correct the RM report so that under_replicated is the super-set of: * healthy * QC * QC Stuck * Unhealthy * Whatever else might appear in the future. And then the things down stream from that just check "under_replicated" and not multiple distinct states. This change just compounds the problems introduced by [HDDS-17225](https://issues.apache.org/jira/browse/HDDS-17225) and really it should be fixed at source. @devmadhuu @sumitagrawl @szetszwo -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
