From ccde0ea1bbabf1b948876a533204b07f3c44d2ab Mon Sep 17 00:00:00 2001 From: Sagar Upadhyaya Date: Tue, 9 Jan 2024 09:05:49 -0800 Subject: [PATCH] Fixing IndicesServiceCloseTests unit test Signed-off-by: Sagar Upadhyaya --- .../java/org/opensearch/indices/IndicesServiceCloseTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/indices/IndicesServiceCloseTests.java b/server/src/test/java/org/opensearch/indices/IndicesServiceCloseTests.java index 86a4e78f18af5..8a00cd2db21c9 100644 --- a/server/src/test/java/org/opensearch/indices/IndicesServiceCloseTests.java +++ b/server/src/test/java/org/opensearch/indices/IndicesServiceCloseTests.java @@ -383,7 +383,7 @@ public boolean isOpen() { @Override public Object getCacheIdentity() { - return this; + return shard; } }; cache.getOrCompute(cacheEntity, () -> new BytesArray("bar"), searcher.getDirectoryReader(), new BytesArray("foo"));