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:54:21 UTC
[incubator-ratis] 01/01: Revert "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 revert-71-election-continue
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git
commit 6080b8c411d04e71385f1428a81efef84ecc5267
Author: bshashikant <sh...@apache.org>
AuthorDate: Tue Apr 28 17:24:10 2020 +0530
Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)"
This reverts commit a252941431168b9d9986165faa9db6ca022a0567.
---
.../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 cab775d..4c05a09 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
- continue;
+ return;
default: throw new IllegalArgumentException("Unable to process result " + r.result);
}
}