You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sz...@apache.org on 2021/12/04 07:49:17 UTC
[ratis] branch master updated: RATIS-531. TestServerRestartWithGrpc.runTestRestartCommitIndex is flaky (#554)
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 8866b83 RATIS-531. TestServerRestartWithGrpc.runTestRestartCommitIndex is flaky (#554)
8866b83 is described below
commit 8866b83ca0818595f627f3adf584ea21a19a8d2e
Author: Doroszlai, Attila <64...@users.noreply.github.com>
AuthorDate: Sat Dec 4 08:49:10 2021 +0100
RATIS-531. TestServerRestartWithGrpc.runTestRestartCommitIndex is flaky (#554)
---
.../src/test/java/org/apache/ratis/server/ServerRestartTests.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ratis-test/src/test/java/org/apache/ratis/server/ServerRestartTests.java b/ratis-test/src/test/java/org/apache/ratis/server/ServerRestartTests.java
index d31dc7d..537293d 100644
--- a/ratis-test/src/test/java/org/apache/ratis/server/ServerRestartTests.java
+++ b/ratis-test/src/test/java/org/apache/ratis/server/ServerRestartTests.java
@@ -277,7 +277,8 @@ public abstract class ServerRestartTests<CLUSTER extends MiniRaftCluster>
for(RaftServer.Division s : cluster.iterateDivisions()) {
if (!s.getId().equals(leaderId)) {
ids.add(s.getId());
- RaftTestUtil.assertSameLog(leaderLog, s.getRaftLog());
+ JavaUtils.attempt(() -> RaftTestUtil.assertSameLog(leaderLog, s.getRaftLog()),
+ 10, HUNDRED_MILLIS, "assertRaftLog-" + s.getId(), LOG);
}
}