SOLR-6146: Close zk before setting interrupt status

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1601905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2014-06-11 14:20:02 +00:00
parent 9e91ecf59f
commit 4f09e4d781
1 changed files with 1 additions and 1 deletions

View File

@ -243,8 +243,8 @@ public class CloudSolrServer extends SolrServer {
zk.createClusterStateWatchersAndUpdate();
zkStateReader = zk;
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
if (zk != null) zk.close();
Thread.currentThread().interrupt();
throw new ZooKeeperException(SolrException.ErrorCode.SERVER_ERROR,
"", e);
} catch (KeeperException e) {