Gargi-jais11 commented on code in PR #8915:
URL: https://github.com/apache/ozone/pull/8915#discussion_r2320760681


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/SendContainerRequestHandler.java:
##########
@@ -84,7 +86,15 @@ public void onNext(SendContainerRequest req) {
 
       if (containerId == -1) {
         containerId = req.getContainerID();
-        volume = importer.chooseNextVolume();
+        
+        // Use replicate size if available, otherwise fall back to default
+        if (firstRequest && req.hasReplicateSize()) {

Review Comment:
   > the condition (containerId == -1) is true, then it must be the first 
request.
   
   Thank you for pointing out this.  I will update this.
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to