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 b3288551b78 [fix](fe) Skip building MTMV cache in the checking compatibility mode (#36844) b3288551b78 is described below commit b3288551b78ebc3ffc0f135bed4013e0eae65c9a Author: walter <w41te...@gmail.com> AuthorDate: Wed Jun 26 14:04:39 2024 +0800 [fix](fe) Skip building MTMV cache in the checking compatibility mode (#36844) --- fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java | 3 ++- .../src/main/java/org/apache/doris/plugin/DynamicPluginLoader.java | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java index b0e158f89d2..a0b73b1df03 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java +++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/MTMV.java @@ -20,6 +20,7 @@ package org.apache.doris.catalog; import org.apache.doris.analysis.PartitionKeyDesc; import org.apache.doris.catalog.OlapTableFactory.MTMVParams; import org.apache.doris.common.AnalysisException; +import org.apache.doris.common.Config; import org.apache.doris.common.FeMetaVersion; import org.apache.doris.common.Pair; import org.apache.doris.common.io.Text; @@ -192,7 +193,7 @@ public class MTMV extends OlapTable { this.status.setSchemaChangeDetail(null); this.status.setRefreshState(MTMVRefreshState.SUCCESS); this.relation = relation; - if (!Env.isCheckpointThread()) { + if (!Env.isCheckpointThread() && !Config.enable_check_compatibility_mode) { try { this.cache = MTMVCache.from(this, MTMVPlanUtil.createMTMVContext(this)); } catch (Throwable e) { diff --git a/fe/fe-core/src/main/java/org/apache/doris/plugin/DynamicPluginLoader.java b/fe/fe-core/src/main/java/org/apache/doris/plugin/DynamicPluginLoader.java index 2a9e3f28a8b..db3de3b237a 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/plugin/DynamicPluginLoader.java +++ b/fe/fe-core/src/main/java/org/apache/doris/plugin/DynamicPluginLoader.java @@ -18,6 +18,7 @@ package org.apache.doris.plugin; import org.apache.doris.catalog.Env; +import org.apache.doris.common.Config; import org.apache.doris.common.UserException; import org.apache.commons.io.FileUtils; @@ -158,6 +159,10 @@ public class DynamicPluginLoader extends PluginLoader { * @throws PluginException */ public void reload() throws IOException, UserException { + if (Config.enable_check_compatibility_mode) { + return; + } + if (Env.isCheckpointThread()) { /* * No need to reload the plugin when this is a checkpoint thread. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org