You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Andrei Mikhalev (Jira)" <ji...@apache.org> on 2024/04/24 09:00:00 UTC

[jira] [Updated] (HDDS-10742) Close all pipelines with ClosePipelineSubcommand

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

Andrei Mikhalev updated HDDS-10742:
-----------------------------------
    Summary: Close all pipelines with ClosePipelineSubcommand  (was: Close all pipelines subcommand)

> Close all pipelines with ClosePipelineSubcommand
> ------------------------------------------------
>
>                 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org