SOLR-8323: Handle removal of legacy collections

This commit is contained in:
Alan Woodward 2016-05-14 19:08:21 +01:00
parent 963c6522b6
commit c0d23a741e
1 changed files with 2 additions and 1 deletions

View File

@ -519,7 +519,8 @@ public class ZkStateReader implements Closeable {
continue;
// legacy collections are always in-memory
DocCollection oldState = ref.get();
DocCollection newState = loadedData.getCollectionStates().get(coll).get();
ClusterState.CollectionRef newRef = loadedData.getCollectionStates().get(coll);
DocCollection newState = newRef == null ? null : newRef.get();
if (!collWatch.stateWatchers.isEmpty()
&& !Objects.equals(oldState, newState)) {
notifyStateWatchers(liveNodes, coll, newState);