yiguolei commented on code in PR #9283:
URL: https://github.com/apache/incubator-doris/pull/9283#discussion_r861492798
##########
fe/fe-core/src/main/java/org/apache/doris/catalog/CatalogRecycleBin.java:
##########
@@ -223,6 +223,13 @@ public synchronized void replayEraseTable(long tableId) {
RecycleTableInfo tableInfo = idToTable.remove(tableId);
idToRecycleTime.remove(tableId);
+ // tableInfo == null means tableId is not in image. replayEraseTable
is used to drop this table.
+ // If it is not exist, table is already dropped, this replay operation
is duplicate, so nothing to do.
+ if (tableInfo == null) {
+ LOG.warn("replayEraseTable, idToTable has no tableId: {}, ignore
it", tableId);
Review Comment:
If the table is dropped, then there should be drop table log and be
replayed. Then erase table log will not occur. Any other things wrong?
--
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]