lokeshj1703 commented on a change in pull request #1318: HDDS-1753. Datanode
unable to find chunk while replication data using ratis.
URL: https://github.com/apache/hadoop/pull/1318#discussion_r317981032
##########
File path:
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/TestBlockDeletingService.java
##########
@@ -195,8 +198,13 @@ public void testBlockDeletion() throws Exception {
ContainerSet containerSet = new ContainerSet();
createToDeleteBlocks(containerSet, conf, 1, 3, 1);
+ OzoneContainer ozoneContainer = Mockito.mock(OzoneContainer.class);
+ Mockito.when(ozoneContainer.getContainerSet())
+ .thenReturn(containerSet);
+ Mockito.when(ozoneContainer.getWriteChannel())
+ .thenReturn(null);
Review comment:
Since it is used in all the test classes, we can add the logic for mocking
ozoneContainer in a TestUtil class.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]