Skip to content

Commit 2ef16c9

Browse files
nicktindalltlrx
andauthored
Update x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java
Co-authored-by: Tanguy Leroux <[email protected]>
1 parent ff3a25d commit 2ef16c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/plugin/blob-cache/src/main/java/org/elasticsearch/blobcache/shared/SharedBlobCacheService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,9 @@ public void forceEvictAsync(Predicate<KeyType> cacheKeyPredicate) {
16361636
evictionsRunner.enqueueTask(new ActionListener<>() {
16371637
@Override
16381638
public void onResponse(Releasable releasable) {
1639-
forceEvict(cacheKeyPredicate);
1639+
try (releasable) {
1640+
forceEvict(cacheKeyPredicate);
1641+
}
16401642
}
16411643

16421644
@Override

0 commit comments

Comments
 (0)