Skip to content

Commit

Permalink
Change remote store restore cluster state priority to URGENT (opensea…
Browse files Browse the repository at this point in the history
…rch-project#16281)

Signed-off-by: Sachin Kale <sachinpkale@gmail.com>
  • Loading branch information
sachinpkale authored and dk2k committed Oct 16, 2024
1 parent b117418 commit 14669f6
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 14669f6

Please sign in to comment.