924060929 commented on code in PR #69501:
URL: https://github.com/apache/doris/pull/69501#discussion_r4356215544


##########
fe/fe-core/src/main/java/org/apache/doris/datasource/ExternalDatabase.java:
##########
@@ -743,6 +743,25 @@ protected void invalidateTableCache(String localTableName) 
{
         }
     }
 
+    /** Refreshes table membership and lookup identity without loading remote 
metadata. */
+    public void invalidateTableLookup(String tableName) {
+        if (!isInitialized()) {
+            return;
+        }
+        // In case-insensitive lookup mode an older spelling may still be 
loading while a refreshed
+        // names snapshot already contains the new spelling. Fence every 
object/ID load in this database.
+        if (isTableNamesCaseInsensitive()) {
+            invalidateAllTableCache();

Review Comment:
   Fixed in 8bd1d68d65a. The table-ID clear now runs under the same publication 
gate as catalog invalidation, and warm-value ID repair uses that gate as well. 
Added a concurrent bulk-invalidation/lookup test. The focused FE tests (72) and 
FE build/Checkstyle pass.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to