Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-3816 Erasure Coding
  3. HDDS-6382

EC: ListPipelines command should consider EC Containers

    XMLWordPrintableJSON

Details

    Description

      In ListPipeline.java we have:

      @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);
      } 

      This code will fail if the pipeline is an EC pipeline. We should also allow for filtering on EC pipelines.

      Attachments

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              sodonnell Stephen O'Donnell
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: