lugency commented on code in PR #1695:
URL: https://github.com/apache/ratis/pull/1695#discussion_r4607262445
##########
ratis-server/src/test/java/org/apache/ratis/server/impl/LeaderElectionTests.java:
##########
@@ -281,6 +291,102 @@ public void testTransferLeader() throws Exception {
}
}
+ @Test
+ public void testRetryCacheCompletesAfterLeaderTransfer() throws Exception {
Review Comment:
Thanks for the suggestion. The original test used a leadership transfer to
leave a failed entry on the former leader, then retried the same write on the
new leader and checked that the former leader completed the replacement entry
when it applied the write.
I agree that creating the failed entry directly on a follower makes the test
easier to follow. I’ll update the test to do that and keep the check that the
replacement entry receives a successful reply.
--
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]