Skip to content

Commit 0c0dc54

Browse files
Shard started reroute high priority
We executed shard started at urgent priority, but the subsequent reroute were at normal priority, causing subsequent recoveries to possibly come after other less important actions. Now do the reroute at high priority.
1 parent aebedd6 commit 0c0dc54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/cluster/action/shard/ShardStateAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ private static boolean assertStartedIndicesHaveCompleteTimestampRanges(ClusterSt
829829
public void clusterStatePublished(ClusterState newClusterState) {
830830
rerouteService.reroute(
831831
"reroute after starting shards",
832-
Priority.NORMAL,
832+
Priority.HIGH,
833833
ActionListener.wrap(
834834
r -> logger.trace("reroute after starting shards succeeded"),
835835
e -> logger.debug("reroute after starting shards failed", e)

0 commit comments

Comments
 (0)