don't clean up indices if there is a block disabling persistence
This commit is contained in:
parent
8c9000c54c
commit
b2d7cd78b7
|
@ -57,6 +57,10 @@ public class IndicesStore extends AbstractComponent implements ClusterStateListe
|
|||
return;
|
||||
}
|
||||
|
||||
if (event.state().blocks().disableStatePersistence()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// when all shards are started within a shard replication group, delete an unallocated shard on this node
|
||||
RoutingTable routingTable = event.state().routingTable();
|
||||
for (IndexRoutingTable indexRoutingTable : routingTable) {
|
||||
|
|
Loading…
Reference in New Issue