zddr commented on code in PR #34548:
URL: https://github.com/apache/doris/pull/34548#discussion_r1602577487


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/InternalCatalog.java:
##########
@@ -1863,7 +1864,9 @@ public void dropPartition(Database db, OlapTable 
olapTable, DropPartitionClause
         DropPartitionInfo info = new DropPartitionInfo(db.getId(), 
olapTable.getId(), partitionName, isTempPartition,
                 clause.isForceDrop(), recycleTime, version, versionTime);
         Env.getCurrentEnv().getEditLog().logDropPartition(info);
-
+        Env.getCurrentEnv().getEventProcessor().processEvent(
+                new DropPartitionEvent(db.getCatalog().getId(), db.getId(),
+                        olapTable.getId()));

Review Comment:
   I changed the location where the event was generated to before writing the 
log, and waited for the message to be processed before writing the log. But 
here we don't care about the result of message processing (it's up to the 
specific listener to decide how to handle a failure)



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to