[Store] migrate non-allocated shard deletion to use ClusterStateNonMasterUpdateTask
This commit is contained in:
parent
bebaf9799c
commit
f029a24d53
|
@ -307,7 +307,7 @@ public class IndicesStore extends AbstractComponent implements ClusterStateListe
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
clusterService.submitStateUpdateTask("indices_store", new ClusterStateUpdateTask() {
|
clusterService.submitStateUpdateTask("indices_store", new ClusterStateNonMasterUpdateTask() {
|
||||||
@Override
|
@Override
|
||||||
public ClusterState execute(ClusterState currentState) throws Exception {
|
public ClusterState execute(ClusterState currentState) throws Exception {
|
||||||
if (clusterState.getVersion() != currentState.getVersion()) {
|
if (clusterState.getVersion() != currentState.getVersion()) {
|
||||||
|
|
Loading…
Reference in New Issue