sarvekshayr commented on code in PR #8216: URL: https://github.com/apache/ozone/pull/8216#discussion_r2024432079
########## hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/RatisPipelineProvider.java: ########## @@ -147,10 +147,15 @@ public synchronized Pipeline create(RatisReplicationConfig replicationConfig, List<DatanodeDetails> excludedNodes, List<DatanodeDetails> favoredNodes) throws IOException { if (exceedPipelineNumberLimit(replicationConfig)) { - throw new SCMException("Ratis pipeline number meets the limit: " + - pipelineNumberLimit + " replicationConfig : " + - replicationConfig, - SCMException.ResultCodes.FAILED_TO_FIND_SUITABLE_NODE); + String limitInfo = (maxPipelinePerDatanode > 0) + ? String.format("per dataNode: %d", maxPipelinePerDatanode) Review Comment: nit: ```suggestion ? String.format("per datanode: %d", maxPipelinePerDatanode) ``` -- 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. To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org