priyeshkaratha commented on code in PR #11505:
URL: https://github.com/apache/ozone/pull/11505#discussion_r4286137715
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/ha/TestSCMStateMachine.java:
##########
@@ -260,6 +261,16 @@ void
testBootstrapStateMachineSkipsSCMCallbacksAndRetryStop() throws Exception {
}
}
+ @Test
+ void testBootstrapStateMachineSkipsApplyTransaction() throws Exception {
+ try (SCMStateMachine bootstrap = new SCMStateMachine()) {
+ CompletableFuture<Message> future =
bootstrap.applyTransaction(newTransaction(RequestType.CONTAINER, 1));
+
+ assertTrue(future.isDone());
+ assertFalse(future.isCompletedExceptionally());
Review Comment:
nit. This could also check that the result is Message.EMPTY.
--
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]