Gargi-jais11 commented on code in PR #8915:
URL: https://github.com/apache/ozone/pull/8915#discussion_r2409466428
##########
hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/replication/TestSendContainerRequestHandler.java:
##########
@@ -189,12 +203,51 @@ public void
testSpaceReservedAndReleasedWhenOnCompletedFails() throws Exception
assertEquals(volume.getCommittedBytes(), initialCommittedBytes);
}
- private ContainerProtos.SendContainerRequest createRequest(long containerId,
ByteString data, int offset) {
- return ContainerProtos.SendContainerRequest.newBuilder()
- .setContainerID(containerId)
- .setData(data)
- .setOffset(offset)
- .setCompression(CopyContainerCompression.NO_COMPRESSION.toProto())
- .build();
+ /**
+ * Test that verifies the actual space calculation difference between
+ * overallocated containers and default containers.
+ */
+ @Test
+ public void testOverAllocatedReservesMoreSpace() {
+ long containerId1 = 1;
+ long containerId2 = 2;
+ long overallocatedSize = 10L * 1024L * 1024L * 1024L; // 10GB
Review Comment:
Okay.
--
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]