From 8fce17f6923584b26bb3879fdd95ff417790bf2a Mon Sep 17 00:00:00 2001 From: shenshoucheng Date: Thu, 23 May 2024 14:12:36 +0800 Subject: [PATCH] fix modify partition's storage policy with different resource issue succeed with execption --- fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java b/fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java index 4e0fe1bbfcdca9..bc24df67af7ddf 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java +++ b/fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java @@ -499,12 +499,12 @@ public void processAlterTable(AlterTableStmt stmt) throws UserException { // currently, only in memory and storage policy property could reach here Preconditions.checkState(properties.containsKey(PropertyAnalyzer.PROPERTIES_INMEMORY) || properties.containsKey(PropertyAnalyzer.PROPERTIES_STORAGE_POLICY)); - ((SchemaChangeHandler) schemaChangeHandler).updatePartitionsProperties( - db, tableName, partitionNames, properties); OlapTable olapTable = (OlapTable) table; olapTable.writeLockOrDdlException(); try { modifyPartitionsProperty(db, olapTable, partitionNames, properties, clause.isTempPartition()); + ((SchemaChangeHandler) schemaChangeHandler).updatePartitionsProperties( + db, tableName, partitionNames, properties); } finally { olapTable.writeUnlock(); }