Skip to content

Commit

Permalink
fix modify partition's storage policy with different resource issue s…
Browse files Browse the repository at this point in the history
…ucceed with execption
  • Loading branch information
shenshoucheng committed May 24, 2024
1 parent e4c3533 commit 8fce17f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fe/fe-core/src/main/java/org/apache/doris/alter/Alter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8fce17f

Please sign in to comment.