mirror of https://github.com/apache/lucene.git
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:
parent
9e91ecf59f
commit
4f09e4d781
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue