Skip to content

Commit adc99c7

Browse files
committed
[fix](fe) Expire cloud partition version caches after ten minutes by default
### What problem does this PR solve? Issue Number: None Related PR: None Problem Summary: Cloud partition version caches default to an infinite TTL, so missed version updates can leave cached versions stale until another invalidation or refresh occurs. Use a ten-minute default TTL to make subsequent reads refresh expired caches from MS. Keep the table version TTL unchanged, so the existing daemon remains enabled by its default TTL condition. Existing cache invalidation and pending-transaction handling retain their behavior. ### Release note Change the default cloud_partition_version_cache_ttl_ms to 600000 milliseconds (ten minutes). The default table version cache TTL remains unchanged. ### Check List (For Author) - Test: Tests not run at the user's request. Reviewed the existing TTL tests, daemon condition, and single-line style; git diff --check passed. Build and Checkstyle were not run. - Behavior changed: Yes; cloud partition version caches expire after ten minutes by default and refresh on subsequent reads. - Does this need documentation: Yes; the documented default should be updated.
1 parent fe1252a commit adc99c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,7 @@ public void setDetailShapePlanNodes(String detailShapePlanNodes) {
31913191
@VarAttrDef.VarAttr(name = CLOUD_FORCE_SYNC_TABLET_STATS, needForward = true)
31923192
public boolean cloudForceSyncTabletStats = false;
31933193
@VarAttrDef.VarAttr(name = CLOUD_PARTITION_VERSION_CACHE_TTL_MS)
3194-
public long cloudPartitionVersionCacheTtlMs = Long.MAX_VALUE;
3194+
public long cloudPartitionVersionCacheTtlMs = 10 * 60 * 1000L;
31953195
@VarAttrDef.VarAttr(name = CLOUD_TABLE_VERSION_CACHE_TTL_MS)
31963196
public long cloudTableVersionCacheTtlMs = Long.MAX_VALUE;
31973197
@VarAttrDef.VarAttr(name = CLOUD_FORCE_SYNC_VERSION, needForward = true)

0 commit comments

Comments
 (0)