Skip to content

Commit

Permalink
[Branch-2.6] Fix cherry-pick issue between #8302 and #8304 (#8652)
Browse files Browse the repository at this point in the history
  • Loading branch information
codelipenghui authored Nov 21, 2020
1 parent 73f9abd commit 45125a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ public ZooKeeperCache(String cacheName, ZooKeeper zkSession, int zkOperationTime

this.childrenCache = Caffeine.newBuilder()
.recordStats()
.expireAfterWrite(zkOperationTimeoutSeconds, TimeUnit.SECONDS)
.expireAfterWrite(cacheExpirySeconds, TimeUnit.SECONDS)
.buildAsync((key, executor1) -> null);

this.existsCache = Caffeine.newBuilder()
.recordStats()
.expireAfterWrite(zkOperationTimeoutSeconds, TimeUnit.SECONDS)
.expireAfterWrite(cacheExpirySeconds, TimeUnit.SECONDS)
.buildAsync((key, executor1) -> null);

CacheMetricsCollector.CAFFEINE.addCache(cacheName + "-data", dataCache);
Expand Down

0 comments on commit 45125a1

Please sign in to comment.