Changed the priority of delete-index action to URGENT

All index meta data API's have urgent priority when it comes to cluster state updates. We'd like to remove indices asap to avoid things like unnecessary shards relocations
This commit is contained in:
uboness 2013-05-07 05:38:24 +02:00
parent 758a4fcdc0
commit 14ae2fb765
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class MetaDataDeleteIndexService extends AbstractComponent {
}
final DeleteIndexListener listener = new DeleteIndexListener(mdLock, request, userListener);
clusterService.submitStateUpdateTask("delete-index [" + request.index + "]", new ClusterStateUpdateTask() {
clusterService.submitStateUpdateTask("delete-index [" + request.index + "]", Priority.URGENT, new ClusterStateUpdateTask() {
@Override
public ClusterState execute(ClusterState currentState) {
try {