diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/AbstractCache.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/AbstractCache.java index 8243b0360b..9659cd8191 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/AbstractCache.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/backend/cache/AbstractCache.java @@ -180,6 +180,9 @@ public long tick() { long current = now(); for (Iterator> it = this.nodes(); it.hasNext();) { CacheNode node = it.next(); + LOG.info("expireTime: {}, current: {}, node.time(): {}, " + + "current-node.time(): {}, node: {}", + expireTime, current, node.time(), current - node.time(), node); if (current - node.time() > expireTime) { // Remove item while iterating map (it must be ConcurrentMap) this.remove(node.key()); @@ -188,7 +191,7 @@ public long tick() { } if (expireItems > 0) { - LOG.debug("Cache expired {} items cost {}ms (size {}, expire {}ms)", + LOG.info("Cache expired {} items cost {}ms (size {}, expire {}ms)", expireItems, now() - current, this.size(), expireTime); } return expireItems;