From 2717697dd86d10f0cd3ceb457b12bec1d225422a Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Thu, 2 Jul 2020 10:24:46 +0200 Subject: [PATCH] Remove Dead Code from Snapshot Shard Assignment Logic (#58793) Now that the init phase is gone from snapshots we do the index resolution and the shard assignment in the same CS update so it's impossible to not find any routing data for an index name that we resolved from the same CS. --- .../snapshots/SnapshotsService.java | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java b/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java index 7a4cc34bf84d6..af222f765ac34 100644 --- a/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java +++ b/server/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java @@ -1240,7 +1240,8 @@ private static ImmutableOpenMap