sumitagrawl commented on code in PR #5576:
URL: https://github.com/apache/ozone/pull/5576#discussion_r1391941996


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/SendContainerRequestHandler.java:
##########
@@ -80,6 +82,14 @@ public void onNext(SendContainerRequest req) {
         LOG.info("Accepting container {}", req.getContainerID());
       }
 
+      // check and avoid download of container file if target already have
+      // container data and import in progress
+      if (!importer.isAllowedContainerImport(containerId)) {
+        throw new StorageContainerException("Container exists or " +
+            "import in progress with container Id " + containerId,
+            ContainerProtos.Result.CONTAINER_EXISTS);
+      }

Review Comment:
   @adoroszlai all comments updated



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