This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new b0e09819d21 branch-4.1: [fix](catalog) commit index with correctly 
partition ids #61139 (#61570)
b0e09819d21 is described below

commit b0e09819d210021bd0493395f10bd3cd0a550daa
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Sat Mar 21 10:55:34 2026 +0800

    branch-4.1: [fix](catalog) commit index with correctly partition ids #61139 
(#61570)
    
    Cherry-picked from #61139
    
    Co-authored-by: walter <[email protected]>
---
 .../src/main/java/org/apache/doris/datasource/InternalCatalog.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java 
b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
index 102060ae2e6..f9cc57d3534 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java
@@ -3117,9 +3117,9 @@ public class InternalCatalog implements 
CatalogIf<Database> {
                         idGeneratorBuffer,
                         binlogConfigForTask,
                         
partitionInfo.getDataProperty(partitionId).isStorageMediumSpecified());
+                olapTable.addPartition(partition);
                 afterCreatePartitions(db.getId(), olapTable.getId(), 
olapTable.getPartitionIds(),
                         olapTable.getIndexIdList(), true /* isCreateTable */, 
true /* isBatchCommit */, olapTable);
-                olapTable.addPartition(partition);
             } else if (partitionInfo.getType() == PartitionType.RANGE
                     || partitionInfo.getType() == PartitionType.LIST) {
                 try {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to