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:20 UTC

[incubator-ratis] branch revert-71-election-continue created (now 6080b8c)

This is an automated email from the ASF dual-hosted git repository.

shashikant pushed a change to branch revert-71-election-continue
in repository https://gitbox.apache.org/repos/asf/incubator-ratis.git.


      at 6080b8c  Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)"

This branch includes the following new commits:

     new 6080b8c  Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-ratis] 01/01: Revert "RATIS-991. Fix Failed UT: testRestartLogAppender (#71)"

Posted by sh...@apache.org.
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);
         }
       }