Skip to content

Commit

Permalink
cleanup commit
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Alfonsi <[email protected]>
  • Loading branch information
Peter Alfonsi committed Jan 2, 2024
1 parent 8831632 commit ad25390
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 127 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ public TierType getTierType() {

@Override
public void close() {
cacheManager.removeCache(DISK_CACHE_ALIAS);
cacheManager.close();
try {
cacheManager.destroyCache(DISK_CACHE_ALIAS);
cacheManager.close();
cacheManager = null;
} catch (CachePersistenceException e) {
throw new OpenSearchException("Exception occurred while destroying ehcache and associated data", e);
}
} catch (NullPointerException ignored) {} // Another test node has already destroyed the cache manager
}

/**
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ public void testEviction() throws Exception {
}
IndicesRequestCache cache = new IndicesRequestCache(
Settings.builder().put(IndicesRequestCache.INDICES_CACHE_QUERY_SIZE.getKey(), size.getBytes() + 1 + "b").build(),
getInstanceFromNode(IndicesService.class),
dummyClusterSettings
getInstanceFromNode(IndicesService.class)
);
AtomicBoolean indexShard = new AtomicBoolean(true);
ShardRequestCache requestCacheStats = new ShardRequestCache();
Expand Down

0 comments on commit ad25390

Please sign in to comment.