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 12:00:37 UTC
[incubator-ratis] branch master updated: RATIS-911. Fix Failed UT:
testRestartLogAppender. Contributed by runzhiwang.
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 61447d1 RATIS-911. Fix Failed UT: testRestartLogAppender. Contributed by runzhiwang.
61447d1 is described below
commit 61447d17f1288b18b56b7c240adcf8732b995f65
Author: Shashikant Banerjee <sh...@apache.org>
AuthorDate: Tue Apr 28 17:28:58 2020 +0530
RATIS-911. Fix Failed UT: testRestartLogAppender. Contributed by runzhiwang.
---
.../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);
}
}