diff --git a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudPartition.java b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudPartition.java index 882bb7f6933c8f..5036a0e01c4464 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudPartition.java +++ b/fe/fe-core/src/main/java/org/apache/doris/cloud/catalog/CloudPartition.java @@ -130,8 +130,8 @@ public long getVisibleVersion() { if (resp.getStatus().getCode() == MetaServiceCode.OK) { version = resp.getVersion(); // Cache visible version, see hasData() for details. - assert resp.getVersionUpdateTimeMsList().size() == 1; - setCachedVisibleVersion(version, resp.getVersionUpdateTimeMs(0)); + long mTime = resp.getVersionUpdateTimeMsList().size() == 1 ? resp.getVersionUpdateTimeMs(0) : 0; + setCachedVisibleVersion(version, mTime); } else { assert resp.getStatus().getCode() == MetaServiceCode.VERSION_NOT_FOUND; version = Partition.PARTITION_INIT_VERSION;