SOLR-12181: Reset simulator cache state when shard becomes inactive.

This commit is contained in:
Andrzej Bialecki 2018-04-25 12:24:52 +02:00
parent 1370f6b520
commit 34170272e1
1 changed files with 3 additions and 0 deletions

View File

@ -944,6 +944,9 @@ public class SimClusterStateProvider implements ClusterStateProvider {
props.put(ZkStateReader.STATE_PROP, Slice.State.INACTIVE.toString());
props.put(ZkStateReader.STATE_TIMESTAMP_PROP, String.valueOf(cloudManager.getTimeSource().getEpochTimeNs()));
// XXX also mark replicas as down? currently SplitShardCmd doesn't do this
// invalidate cached state
collectionsStatesRef.set(null);
} finally {
lock.unlock();
}