You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by da...@apache.org on 2024/07/02 13:27:47 UTC
(doris) branch master updated: [fix](fe) Avoid infinite dropping index in check compatibility mode (#37116)
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 6b7b63c7c0d [fix](fe) Avoid infinite dropping index in check compatibility mode (#37116)
6b7b63c7c0d is described below
commit 6b7b63c7c0d2ebae25722e6f29f0dd26adaffb26
Author: walter <w4...@gmail.com>
AuthorDate: Tue Jul 2 21:27:39 2024 +0800
[fix](fe) Avoid infinite dropping index in check compatibility mode (#37116)
---
.../src/main/java/org/apache/doris/alter/CloudSchemaChangeJobV2.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/alter/CloudSchemaChangeJobV2.java b/fe/fe-core/src/main/java/org/apache/doris/alter/CloudSchemaChangeJobV2.java
index 2fe3d748602..3968f2d274f 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/alter/CloudSchemaChangeJobV2.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/alter/CloudSchemaChangeJobV2.java
@@ -118,6 +118,11 @@ public class CloudSchemaChangeJobV2 extends SchemaChangeJobV2 {
@Override
protected void postProcessOriginIndex() {
+ if (Config.enable_check_compatibility_mode) {
+ LOG.info("skip drop origin indexes in checking compatibility mode");
+ return;
+ }
+
List<Long> originIdxList = indexIdMap.values().stream().collect(Collectors.toList());
dropIndex(originIdxList);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org