Filter original indices in shard level request (#78508)

Today the search action send the full list of original indices on every shard request.
This change restricts the list to the concrete index of the shard or the alias that was used to resolve it.

Relates #78314
This commit is contained in:
Jim Ferenczi 2021-10-14 10:34:08 +02:00 committed by GitHub
parent 05b52de9d8
commit 5416582f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 499 additions and 255 deletions

View file

@ -80,7 +80,7 @@ public class CountResponseTests extends ESTestCase {
String nodeId = randomAlphaOfLengthBetween(5, 10);
String indexName = randomAlphaOfLengthBetween(5, 10);
searchShardTarget = new SearchShardTarget(nodeId,
new ShardId(new Index(indexName, IndexMetadata.INDEX_UUID_NA_VALUE), randomInt()), null, null);
new ShardId(new Index(indexName, IndexMetadata.INDEX_UUID_NA_VALUE), randomInt()), null);
}
return new ShardSearchFailure(ex, searchShardTarget);
}