diff --git a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java index c8f389f7f4..c534e45df6 100644 --- a/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java +++ b/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java @@ -326,6 +326,7 @@ protected Iterator queryEdgesFromBackend(Query query) { if (edge.expired()) { this.edgesCache.invalidate(cacheKey); value = null; + break; } } }