You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ratis.apache.org by wi...@apache.org on 2024/05/17 03:01:05 UTC

(ratis) 14/15: RATIS-2060 Avoid unexpected shutdown of RaftServerProxy during membership change (#1069)

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

williamsong pushed a commit to branch snapshot-3
in repository https://gitbox.apache.org/repos/asf/ratis.git

commit 611b80a851b6451dc1dab40688e9e8524f0980b1
Author: Potato <ta...@apache.org>
AuthorDate: Thu Apr 25 19:44:55 2024 +0800

    RATIS-2060 Avoid unexpected shutdown of RaftServerProxy during membership change (#1069)
---
 .../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 53e83d866..d738c8757 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
@@ -333,7 +333,7 @@ class LeaderElection implements Runnable {
           return true;
         case NOT_IN_CONF:
         case SHUTDOWN:
-          server.getRaftServer().close();
+          server.close();
           server.getStateMachine().event().notifyServerShutdown(server.getRoleInfoProto());
           return false;
         case TIMEOUT: