Skip to content

Commit 0eee973

Browse files
committed
SUPPORT-33245: increase cache size in order to circumvent null reference caused by LRU race condition
1 parent 0151f2a commit 0eee973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/commercetools/sync/commons/utils/CaffeineReferenceIdToKeyCacheImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
public class CaffeineReferenceIdToKeyCacheImpl implements ReferenceIdToKeyCache {
1818
private static final Cache<String, String> referenceIdToKeyCache =
19-
Caffeine.newBuilder().maximumSize(10_000).executor(Runnable::run).build();
19+
Caffeine.newBuilder().maximumSize(1_000_000).executor(Runnable::run).build();
2020

2121
public CaffeineReferenceIdToKeyCacheImpl() {}
2222

0 commit comments

Comments
 (0)