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

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


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 44fb4569a51 branch-3.0: [hotfix](external) Fixed External meta replay 
check (#47930)
44fb4569a51 is described below

commit 44fb4569a51e3baf140140451a360e7fee8fd1db
Author: zy-kkk <zhongy...@gmail.com>
AuthorDate: Fri Feb 14 19:49:42 2025 +0800

    branch-3.0: [hotfix](external) Fixed External meta replay check (#47930)
    
    cherry-pick from #47928
---
 .../main/java/org/apache/doris/datasource/ExternalDatabase.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 ea02a20a07b..6b003f68b5c 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
@@ -237,8 +237,8 @@ public abstract class ExternalDatabase<T extends 
ExternalTable>
             LOG.info("Synchronized table (create): [Name: {}, ID: {}, Remote 
Name: {}]",
                     table.getName(), table.getId(), 
log.getRemoteTableNames().get(i));
         }
-        // Check whether the remoteName and db Tbl db in idToTbl is empty
-        for (T table : idToTbl.values()) {
+        // Check whether the remoteName and db Tbl db in tmpIdToTbl is empty
+        for (T table : tmpIdToTbl.values()) {
             if (Strings.isNullOrEmpty(table.getRemoteName())
                     || table.getDb() == null) {
                 LOG.info("Table [{}] remoteName or database is empty, mark as 
uninitialized",
@@ -664,8 +664,8 @@ public abstract class ExternalDatabase<T extends 
ExternalTable>
                         ((ExternalTable) obj).getName());
             }
         }
-        // Check whether the remoteName and db Tbl db in idToTbl is empty
-        for (T table : idToTbl.values()) {
+        // Check whether the remoteName and db Tbl db in tmpIdToTbl is empty
+        for (T table : tmpIdToTbl.values()) {
             if (Strings.isNullOrEmpty(table.getRemoteName())
                     || table.getDb() == null) {
                 initialized = false;


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

Reply via email to