You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "morningman (via GitHub)" <gi...@apache.org> on 2023/07/18 15:18:49 UTC

[GitHub] [doris] morningman commented on a diff in pull request #21941: [fix](catalog) do not call makeSureInitialized when create/drop table/db from hms meta event

morningman commented on code in PR #21941:
URL: https://github.com/apache/doris/pull/21941#discussion_r1266933205


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/external/HMSExternalDatabase.java:
##########
@@ -74,7 +74,17 @@ public void dropTable(String tableName) {
     }
 
     @Override
-    public void replayCreateTableFromEvent(String tableName, long tableId) {
+    public void dropTableForReplay(String tableName) {
+        LOG.debug("replayDropTableFromEvent [{}]", tableName);
+        Long tableId = tableNameToId.remove(tableName);
+        if (tableId == null) {
+            LOG.warn("replayDropTableFromEvent [{}] failed", tableName);
+        }

Review Comment:
   missing `else`?



-- 
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