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

Uma Maheswara Rao G updated HDDS-6382:
--------------------------------------
    Fix Version/s: EC-Branch
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> EC: ListPipelines command should consider EC Containers
> -------------------------------------------------------
>
>                 Key: HDDS-6382
>                 URL: https://issues.apache.org/jira/browse/HDDS-6382
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: SCM
>            Reporter: Stephen O'Donnell
>            Assignee: Stephen O'Donnell
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: EC-Branch
>
>
> In ListPipeline.java we have:
> {code:java}
> @Override
> public void execute(ScmClient scmClient) throws IOException {
>   Stream<Pipeline> stream = scmClient.listPipelines().stream();
>   if (!Strings.isNullOrEmpty(factor)) {
>     stream = stream.filter(
>         p -> ReplicationConfig.getLegacyFactor(p.getReplicationConfig())
>             .toString().compareToIgnoreCase(factor) == 0);
>   }
>   if (!Strings.isNullOrEmpty(state)) {
>     stream = stream.filter(p -> p.getPipelineState().toString()
>         .compareToIgnoreCase(state) == 0);
>   }
>   stream.forEach(System.out::println);
> } {code}
> This code will fail if the pipeline is an EC pipeline. We should also allow 
> for filtering on EC pipelines.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to