Montura opened a new pull request, #6577: URL: https://github.com/apache/ozone/pull/6577
## What changes were proposed in this pull request? Suggested a new subcommand to close all pipelines (or some filtered pipeline subset) Please describe your PR in detail: For now ozone CLI allows to [get pipelines list](https://github.com/apache/ozone/blob/master/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/pipeline/ListPipelinesSubcommand.java#L49) or [close pipeline](https://github.com/apache/ozone/blob/master/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/pipeline/ClosePipelineSubcommand.java) by PipelineId. Suggested a new command to close all pipelines (or some filtered pipeline subset): 1. get pipeline list from `ScmClient` 2. filter `CLOSED` pipelines (to close only `OPEN` and `ALLOCATED`) 3. filter pipelines by `REPLICATION` or `REPLICATION_TYPE` or `REPLICATION_FACTOR` (as in [ListPipelinesSubcommand](https://github.com/apache/ozone/blob/master/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/pipeline/ListPipelinesSubcommand.java#L103) done) close the remain pipelines set ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-10742 ## How was this patch tested? This subcommand triggers [ClosePipelineSubcommand](https://github.com/apache/ozone/blob/master/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/pipeline/ClosePipelineSubcommand.java) that is already tested. -- 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]
