You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/04/08 15:17:40 UTC

(doris) 01/02: [fix](external catalog) Reset external table creation status on log replay (#33393)

This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 7892e7300f379910a919ff2b16cb3aac514792b8
Author: zy-kkk <zh...@gmail.com>
AuthorDate: Mon Apr 8 23:13:33 2024 +0800

    [fix](external catalog) Reset external table creation status on log replay (#33393)
---
 .../src/main/java/org/apache/doris/datasource/ExternalDatabase.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
index 5411927eb57..2d0d47f633c 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java
@@ -149,6 +149,7 @@ public abstract class ExternalDatabase<T extends ExternalTable>
             // So we need add a validation here to avoid table(s) not found, this is just a temporary solution
             // because later we will remove all the logics about InitCatalogLog/InitDatabaseLog.
             if (table != null) {
+                table.unsetObjectCreated();
                 tmpTableNameToId.put(table.getName(), table.getId());
                 tmpIdToTbl.put(table.getId(), table);
             }


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