This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 7e18df998d1 branch-4.0: [Fix]Fix drop index and build index running
same time #56470 (#56516)
7e18df998d1 is described below
commit 7e18df998d1c30f59c1f9044fccdacdc206bece6
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Sep 27 21:44:48 2025 +0800
branch-4.0: [Fix]Fix drop index and build index running same time #56470
(#56516)
Cherry-picked from #56470
Co-authored-by: wangbo <[email protected]>
---
.../src/main/java/org/apache/doris/alter/SchemaChangeHandler.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
b/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
index 268e0262613..092262c1a76 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeHandler.java
@@ -3333,7 +3333,8 @@ public class SchemaChangeHandler extends AlterHandler {
&& indexChangeJob.getDbId() == dbId
&& indexChangeJob.getTableId() == tableId
&& indexChangeJob.getPartitionName().equals(partitionName)
- && indexChangeJob.hasSameAlterInvertedIndex(isDrop,
alterIndexes)
+ && ((Config.isNotCloudMode() &&
indexChangeJob.hasSameAlterInvertedIndex(isDrop, alterIndexes))
+ || Config.isCloudMode())
&& !indexChangeJob.isDone()) {
// if JobState is done (CANCELLED or FINISHED), also allow
user to create job again
return true;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]