Skip to content

Commit e280fe6

Browse files
committed
Fix test failures
Signed-off-by: Shreyansh Ray <[email protected]>
1 parent c4f8e86 commit e280fe6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/org/opensearch/index/store/remote/utils/TransferManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public IndexInput fetchBlob(BlobFetchRequest blobFetchRequest) throws IOExceptio
7676
return AccessController.doPrivileged((PrivilegedExceptionAction<IndexInput>) () -> {
7777
CachedIndexInput cacheEntry = fileCache.get(key);
7878
if (cacheEntry == null || cacheEntry.isClosed()) {
79-
cacheEntry = fileCache.put(key, new DelayedCreationCachedIndexInput(fileCache, streamReader, blobFetchRequest));
79+
cacheEntry = new DelayedCreationCachedIndexInput(fileCache, streamReader, blobFetchRequest);
80+
fileCache.put(key, cacheEntry);
8081
}
8182

8283
// Cache entry was either retrieved from the cache or newly added, either

0 commit comments

Comments
 (0)