[ 
https://issues.apache.org/jira/browse/HDDS-10742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrei Mikhalev updated HDDS-10742:
-----------------------------------
    Summary: Add option to close all pipelines  (was: Close all pipelines with 
ClosePipelineSubcommand)

> Add option to close all pipelines
> ---------------------------------
>
>                 Key: HDDS-10742
>                 URL: https://issues.apache.org/jira/browse/HDDS-10742
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone CLI, SCM Client
>            Reporter: Andrei Mikhalev
>            Assignee: Andrei Mikhalev
>            Priority: Major
>              Labels: pull-request-available
>
> 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 option *--all* for *ClosePipelineSubcommand* to close all 
> pipelines (or some filtered pipeline subset):
>  # get pipeline list from {{ScmClient}}
>  # filter {{CLOSED}} pipelines (to close only {{OPEN}} and {{{}ALLOCATED{}}})
>  # 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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to