JacksonYao287 commented on a change in pull request #2172:
URL: https://github.com/apache/ozone/pull/2172#discussion_r619745614



##########
File path: 
hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/scm/TestReconContainerManager.java
##########
@@ -127,6 +129,33 @@ public void testCheckAndAddNewContainer() throws 
IOException {
         getContainerManager().getContainer(containerID).getState());
   }
 
+  @Test
+  public void testCheckAndAddNewContainerBatch() throws IOException {
+    List<ContainerReplicaProto> containerReplicaProtoList = new LinkedList<>();
+    ReconContainerManager containerManager = getContainerManager();
+    for (long i = 200L; i < 300L; i++) {
+      assertFalse(containerManager.containerExist(ContainerID.valueOf(i)));
+      ContainerReplicaProto.Builder ciBuilder =
+          ContainerReplicaProto.newBuilder();
+      ContainerReplicaProto crp = ciBuilder.
+          setContainerID(i).setState(OPEN).build();
+      containerReplicaProtoList.add(crp);

Review comment:
       added




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



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

Reply via email to