Skip to content

Commit 150d707

Browse files
zy-kkkmorningman
authored andcommitted
branch-2.1: [hotfix](external) Fixed External meta replay check (#47931)
cherry-pick from #47928
1 parent 481e507 commit 150d707

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ public void replayInitDb(InitDatabaseLog log, ExternalCatalog catalog) {
240240
LOG.info("Synchronized table (create): [Name: {}, ID: {}, Remote Name: {}]",
241241
table.getName(), table.getId(), log.getRemoteTableNames().get(i));
242242
}
243-
// Check whether the remoteName and db Tbl db in idToTbl is empty
244-
for (T table : idToTbl.values()) {
243+
// Check whether the remoteName and db Tbl db in tmpIdToTbl is empty
244+
for (T table : tmpIdToTbl.values()) {
245245
if (Strings.isNullOrEmpty(table.getRemoteName())
246246
|| table.getDb() == null) {
247247
LOG.info("Table [{}] remoteName or database is empty, mark as uninitialized",
@@ -673,8 +673,8 @@ public void gsonPostProcess() throws IOException {
673673
((ExternalTable) obj).getName());
674674
}
675675
}
676-
// Check whether the remoteName and db Tbl db in idToTbl is empty
677-
for (T table : idToTbl.values()) {
676+
// Check whether the remoteName and db Tbl db in tmpIdToTbl is empty
677+
for (T table : tmpIdToTbl.values()) {
678678
if (Strings.isNullOrEmpty(table.getRemoteName())
679679
|| table.getDb() == null) {
680680
initialized = false;

0 commit comments

Comments
 (0)