Gargi-jais11 commented on code in PR #8915:
URL: https://github.com/apache/ozone/pull/8915#discussion_r2409446349
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/replication/TestContainerReplication.java:
##########
@@ -157,6 +170,68 @@ void pushUnknownContainer() throws Exception {
ReplicationSupervisor::getReplicationFailureCount);
}
+ /**
+ * Provides stream of different container sizes for tests.
+ */
+ public static Stream<Arguments> sizeProvider() {
+ return Stream.of(
+ Arguments.of("Normal 2MB", 2L * 1024L * 1024L),
+ Arguments.of("Overallocated 6MB", 6L * 1024L * 1024L)
+ );
+ }
+
+ /**
+ * Tests push replication of a container with over-allocated size.
+ * The target datanode will need to reserve double the container size,
+ * which is greater than the configured max container size.
+ */
+ @ParameterizedTest(name = "for {0}")
+ @MethodSource("sizeProvider")
+ void testPushWithOverAllocatedContainer(String testName, Long containerSize)
Review Comment:
Sorry I didn't get your point. This test is intended to test push
replication for overallocated containers.
--
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]