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:56 UTC
[incubator-ratis] branch master updated: Revert "RATIS-991. Fix
Failed UT: testRestartLogAppender (#71)" (#73)
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 07534d1 Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)" (#73)
07534d1 is described below
commit 07534d1d8f186dca62ef60112ee42909d9152feb
Author: bshashikant <sh...@apache.org>
AuthorDate: Tue Apr 28 17:24:48 2020 +0530
Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)" (#73)
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);
}
}