You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by sh...@apache.org on 2020/04/28 11:50:23 UTC
[incubator-ratis] branch master updated: RATIS-991. Fix Failed UT:
testRestartLogAppender (#71)
This is an automated email from the ASF dual-hosted git repository.
shashikant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
The following commit(s) were added to refs/heads/master by this push:
new a252941 RATIS-991. Fix Failed UT: testRestartLogAppender (#71)
a252941 is described below
commit a252941431168b9d9986165faa9db6ca022a0567
Author: runzhiwang <51...@users.noreply.github.com>
AuthorDate: Tue Apr 28 19:50:15 2020 +0800
RATIS-991. Fix Failed UT: testRestartLogAppender (#71)
---
.../src/main/java/org/apache/ratis/server/impl/LeaderElection.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderElection.java b/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderElection.java
index 4c05a09..cab775d 100644
--- a/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderElection.java
+++ b/ratis-server/src/main/java/org/apache/ratis/server/impl/LeaderElection.java
@@ -247,7 +247,7 @@ class LeaderElection implements Runnable {
server.changeToFollowerAndPersistMetadata(term, Result.DISCOVERED_A_NEW_TERM);
return;
case TIMEOUT: // should start another election
- return;
+ continue;
default: throw new IllegalArgumentException("Unable to process result " + r.result);
}
}