You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Stephen O'Donnell (Jira)" <ji...@apache.org> on 2022/02/28 15:15:00 UTC
[jira] [Created] (HDDS-6382) EC: ListPipelines command should consider EC Containers
Stephen O'Donnell created HDDS-6382:
---------------------------------------
Summary: 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
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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org