mirror of https://github.com/apache/lucene.git
related to the failures seen here SOLR-6347
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1627122 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cc2baddb76
commit
e096d4ae93
|
@ -874,8 +874,14 @@ public class ZkStateReader implements Closeable {
|
|||
public void removeZKWatch(final String coll) {
|
||||
synchronized (this) {
|
||||
watchedCollections.remove(coll);
|
||||
clusterState = clusterState.copyWith(Collections
|
||||
.<String,DocCollection> singletonMap(coll, null));
|
||||
try {
|
||||
updateClusterState(true);
|
||||
} catch (KeeperException e) {
|
||||
log.error("Error updating state",e);
|
||||
} catch (InterruptedException e) {
|
||||
log.error("Error updating state",e);
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue