mirror of https://github.com/apache/lucene.git
SOLR-12181: Reset simulator cache state when shard becomes inactive.
This commit is contained in:
parent
1370f6b520
commit
34170272e1
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue