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: [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]