You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/29 06:35:54 UTC

[GitHub] [incubator-doris] yiguolei commented on a diff in pull request #9283: Fix bug for nullptr on replayEraseTable

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

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


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