From c5fd7fe809f75d2228ca18f674c6e7b7fad4d96f Mon Sep 17 00:00:00 2001 From: Peter Alfonsi Date: Tue, 3 Sep 2024 14:38:26 -0700 Subject: [PATCH] Change IRC UT to correctly create shard Signed-off-by: Peter Alfonsi --- .../org/opensearch/indices/IndicesRequestCacheTests.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java b/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java index dcddd9f3d1318..6d4137ab3a4f5 100644 --- a/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java +++ b/server/src/test/java/org/opensearch/indices/IndicesRequestCacheTests.java @@ -1369,12 +1369,8 @@ public void testDeleteAndCreateIndexShardOnSameNodeAndVerifyStats() throws Excep s -> {}, RetentionLeaseSyncer.EMPTY, SegmentReplicationCheckpointPublisher.EMPTY, - null, - null, - localNode, - null, - DiscoveryNodes.builder().add(localNode).build() - ); + null + ); // In 2.11 this fn lacks some arguments that were present in 2.15. Assuming it can read the node from the routing // Verify that the new shard requestStats entries are empty. stats = indexShard.requestCache().stats();