This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new d921f9ba408 [fix](fe) CloudPartition returns cached version in the
checkpoint thread (#36933)
d921f9ba408 is described below
commit d921f9ba408a5dc23bd4a06071ddf25a9e70fe8c
Author: walter <[email protected]>
AuthorDate: Thu Jun 27 21:16:29 2024 +0800
[fix](fe) CloudPartition returns cached version in the checkpoint thread
(#36933)
---
.../main/java/org/apache/doris/cloud/catalog/CloudPartition.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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 9f75a33cfde..42327b6039d 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
@@ -18,6 +18,7 @@
package org.apache.doris.cloud.catalog;
import org.apache.doris.catalog.DistributionInfo;
+import org.apache.doris.catalog.Env;
import org.apache.doris.catalog.MaterializedIndex;
import org.apache.doris.catalog.Partition;
import org.apache.doris.cloud.proto.Cloud;
@@ -104,9 +105,8 @@ public class CloudPartition extends Partition {
@Override
public long getVisibleVersion() {
- if (Config.enable_check_compatibility_mode) {
- LOG.info("return 1 as the visible version in the compatibility
checking mode");
- return 1;
+ if (Env.isCheckpointThread() ||
Config.enable_check_compatibility_mode) {
+ return super.getVisibleVersion();
}
if (LOG.isDebugEnabled()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]