hanishakoneru commented on a change in pull request #749: HDDS-3322. StandAlone Pipelines are created in an infinite loop URL: https://github.com/apache/hadoop-ozone/pull/749#discussion_r409672521
########## File path: hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/SimplePipelineProvider.java ########## @@ -32,18 +31,18 @@ /** * Implements Api for creating stand alone pipelines. */ -public class SimplePipelineProvider implements PipelineProvider { +public class SimplePipelineProvider extends PipelineProvider { - private final NodeManager nodeManager; - - public SimplePipelineProvider(NodeManager nodeManager) { - this.nodeManager = nodeManager; + public SimplePipelineProvider(NodeManager nodeManager, + PipelineStateManager stateManager) { + super(nodeManager, stateManager); } @Override public Pipeline create(ReplicationFactor factor) throws IOException { - List<DatanodeDetails> dns = - nodeManager.getNodes(NodeState.HEALTHY); + List<DatanodeDetails> dns = pickNodesNeverUsed(ReplicationType.STAND_ALONE, Review comment: Updated to create only factor ONE pipelines for StandAlone type. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org