zclllyybb commented on code in PR #54638:
URL: https://github.com/apache/doris/pull/54638#discussion_r2281672631


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -1646,7 +1646,69 @@ public PartitionPersistInfo addPartition(Database db, 
String tableName, AddParti
         Preconditions.checkNotNull(olapTable);
         Preconditions.checkNotNull(indexIdToMeta);
 
+        // Guard to serialize concurrent creation of the same partition within 
the same table.
+        // We acquire or wait on a per-partition future to ensure only one 
creator proceeds to heavy work.
+        CompletableFuture<Void> ownerFuture = null;
+        while (true) {

Review Comment:
   这个最好不要,加重试次数语义就不对了。可以给join加个超时条件



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to