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:
Noble Paul 2014-09-23 19:19:57 +00:00
parent cc2baddb76
commit e096d4ae93
1 changed files with 8 additions and 2 deletions

View File

@ -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();
}
}
}