zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lvfangmin <...@git.apache.org>
Subject [GitHub] zookeeper pull request #562: [ZOOKEEPER-3084] Exit when zeus cannot bind to ...
Date Fri, 06 Jul 2018 17:25:30 GMT
Github user lvfangmin commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/562#discussion_r200719504
  
    --- Diff: src/java/main/org/apache/zookeeper/server/quorum/QuorumCnxManager.java ---
    @@ -905,6 +908,12 @@ public void run() {
                             + "I won't be able to participate in leader "
                             + "election any longer: "
                             + self.getElectionAddress());
    +                if (exitException instanceof BindException) {
    +                    // After leaving listener thread, the host cannot join the
    +                    // quorum anymore, this is a severe error that we cannot
    +                    // recover from, so we need to exit
    +                    System.exit(14);
    --- End diff --
    
    I picked an exit code which is not being used in anywhere else, so it can identify why
it exited.


---

Mime
View raw message