hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Yuan Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-13733) failed MiniZooKeeperCluster startup not shut down ZK servers
Date Thu, 21 May 2015 01:44:00 GMT
Stephen Yuan Jiang created HBASE-13733:

             Summary: failed MiniZooKeeperCluster startup not shut down ZK servers
                 Key: HBASE-13733
                 URL: https://issues.apache.org/jira/browse/HBASE-13733
             Project: HBase
          Issue Type: Bug
          Components: Zookeeper
    Affects Versions: 1.1.0, 2.0.0, 1.2.0
            Reporter: Stephen Yuan Jiang
            Assignee: Stephen Yuan Jiang

MiniZooKeeperCluster#startup() starts servers one-by-one, if everything is good, it would
declare success of start:

  public int startup(File baseDir, int numZooKeeperServers) 
    // running all the ZK servers
    for (int i = 0; i < numZooKeeperServers; i++) {
    ...===> could throw exception in the loop and end the startup
      // Start up this ZK server
    started = true;


However, if exception throws in the middle of start up (eg. some servers already started),
the MiniZooKeeperCluster#shutdown() would not shut down them and clean up resources.  

  public void shutdown() throws IOException {
    if (!started) {

This message was sent by Atlassian JIRA

View raw message