Skip to content

Commit f850b4d

Browse files
Sagar Upadhyayasgup432
authored andcommitted
Fixing ehcache test concurrentPut
Signed-off-by: Sagar Upadhyaya <[email protected]>
1 parent a8ea4c2 commit f850b4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/cache-ehcache/src/test/java/org/opensearch/cache/store/disk/EhCacheDiskCacheTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public void testConcurrentPut() throws Exception {
137137
ICache<String, String> ehcacheTest = new EhcacheDiskCache.Builder<String, String>().setDiskCacheAlias("test1")
138138
.setThreadPoolAlias("ehcacheTest")
139139
.setStoragePath(env.nodePaths()[0].indicesPath.toString() + "/request_cache")
140+
.setIsEventListenerModeSync(true) // For accurate count
140141
.setKeyType(String.class)
141142
.setValueType(String.class)
142143
.setCacheType(CacheType.INDICES_REQUEST_CACHE)

0 commit comments

Comments
 (0)