Skip to content

Commit

Permalink
Change remote store restore cluster state priority to URGENT (#16281)
Browse files Browse the repository at this point in the history
Signed-off-by: Sachin Kale <sachinpkale@gmail.com>
  • Loading branch information
sachinpkale authored Oct 11, 2024
1 parent 34b794b commit d6ea8eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.opensearch.cluster.routing.allocation.AllocationService;
import org.opensearch.cluster.service.ClusterService;
import org.opensearch.common.Nullable;
import org.opensearch.common.Priority;
import org.opensearch.common.UUIDs;
import org.opensearch.common.collect.Tuple;
import org.opensearch.common.settings.Settings;
Expand Down Expand Up @@ -95,7 +96,7 @@ public RemoteStoreRestoreService(
* @param listener restore listener
*/
public void restore(RestoreRemoteStoreRequest request, final ActionListener<RestoreService.RestoreCompletionResponse> listener) {
clusterService.submitStateUpdateTask("restore[remote_store]", new ClusterStateUpdateTask() {
clusterService.submitStateUpdateTask("restore[remote_store]", new ClusterStateUpdateTask(Priority.URGENT) {
String restoreUUID;
RestoreInfo restoreInfo = null;

Expand Down

0 comments on commit d6ea8eb

Please sign in to comment.