This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 9f3334650 RATIS-1833. Intermittent failure in
TestRaftStateMachineExceptionWithSimulatedRpc (#874)
9f3334650 is described below
commit 9f3334650570ea331f87c83c0f1fa22da8e322e7
Author: Kaijie Chen <[email protected]>
AuthorDate: Fri Apr 28 22:38:31 2023 +0800
RATIS-1833. Intermittent failure in
TestRaftStateMachineExceptionWithSimulatedRpc (#874)
---
.../org/apache/ratis/server/impl/RaftStateMachineExceptionTests.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/ratis-server/src/test/java/org/apache/ratis/server/impl/RaftStateMachineExceptionTests.java
b/ratis-server/src/test/java/org/apache/ratis/server/impl/RaftStateMachineExceptionTests.java
index 0f9155e9c..be857141c 100644
---
a/ratis-server/src/test/java/org/apache/ratis/server/impl/RaftStateMachineExceptionTests.java
+++
b/ratis-server/src/test/java/org/apache/ratis/server/impl/RaftStateMachineExceptionTests.java
@@ -164,6 +164,7 @@ public abstract class
RaftStateMachineExceptionTests<CLUSTER extends MiniRaftClu
Assert.assertNotNull(oldEntry);
Assert.assertTrue(RetryCacheTestUtil.isFailed(oldEntry));
+ Thread.sleep(100);
// At this point of time the old leader would have stepped down. wait
for leader election to complete
final RaftServer.Division leader = RaftTestUtil.waitForLeader(cluster);
// retry