nandakumar131 commented on code in PR #8663: URL: https://github.com/apache/ozone/pull/8663#discussion_r2158213817
########## hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerManagerImpl.java: ########## @@ -346,14 +352,24 @@ public ContainerInfo getMatchingContainer(final long size, final String owner, synchronized (pipeline.getId()) { containerIDs = getContainersForOwner(pipeline, owner); if (containerIDs.size() < getOpenContainerCountPerPipeline(pipeline)) { - allocateContainer(pipeline, owner); - containerIDs = getContainersForOwner(pipeline, owner); + if (pipelineManager.hasEnoughSpace(pipeline, containerSize)) { Review Comment: Can we move this check to `allocateContainer` method? -- 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