Skip to content

Commit 150f57d

Browse files
authored
Merge pull request #1223 from commercetools/SUPPORT-33245/null-resolved-reference
SUPPORT-33245: increase cache size in order to circumvent null reference caused by LRU race condition
2 parents 0151f2a + 0eee973 commit 150f57d

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)