Sadanand Shenoy created HDDS-9116:
-------------------------------------

             Summary: Request parameter 'nodePool' not used in 
createReplicationPipeline.
                 Key: HDDS-9116
                 URL: https://issues.apache.org/jira/browse/HDDS-9116
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Sadanand Shenoy


The param 'nodePool' is never used by any client. It always passes 
HddsProtos.NodePool.getDefaultInstance() to these methods which is null.
 
https://github.com/apache/ozone/blob/f271f719a3da850c48cfcea12c9243dc87cb06a7/hadoop-hdds/tools/src/main/java/org/apache/hadoop/hdds/scm/cli/pipeline/CreatePipelineSubcommand.java#L72

Also on the SCM implementation too, the nodePool is not deduced from the request
{code:java}
public PipelineResponseProto allocatePipeline(
    StorageContainerLocationProtocolProtos.PipelineRequestProto request,
    int clientVersion) throws IOException {
  Pipeline pipeline = impl.createReplicationPipeline(
      request.getReplicationType(), request.getReplicationFactor(),
      HddsProtos.NodePool.getDefaultInstance()); {code}



--
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