sarvekshayr opened a new pull request, #10736: URL: https://github.com/apache/ozone/pull/10736
## What changes were proposed in this pull request? Adds optional health-state filtering to SCM’s in-process container ID listing APIs. ContainerStateMap gains a 4-argument `getContainerIDs(lifecycle, health, start, count)` with three dispatch paths: - Lifecycle only (health == null) - uses the existing lifecycle index (same behavior as before). - Lifecycle + health - walks the lifecycle index and filters by `ContainerInfo.getHealthState()`. - Health only (lifecycle == null) - scans the full container map (no health index; documented as slower at scale). The new filter is threaded through `ContainerManager`, `ContainerStateManager`, and the HA `ContainerStateManagerInvoker`. The existing `listContainerIDs` RPC path passes null for health, so external behavior is unchanged. Part **2 of 5** in splitting [HDDS-15496](https://issues.apache.org/jira/browse/HDDS-15496) https://github.com/apache/ozone/pull/10673 container ID export. ## What is the link to the Apache JIRA [HDDS-15837](https://issues.apache.org/jira/browse/HDDS-15837) ## How was this patch tested? Added unit tests. -- 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]
