924060929 opened a new pull request, #69501:
URL: https://github.com/apache/doris/pull/69501

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Problem Summary: An explicit `REFRESH TABLE` invalidated connector metadata 
but left the external database's cached table-name snapshot and table object/ID 
lookup in place. If a remote table was dropped or recreated under the same 
name, `SHOW TABLES` and subsequent lookups could continue to use stale FE 
identity until cache expiry. This change invalidates the lookup state on 
explicit refresh and replays the same decision on follower FEs. It also covers 
cold replay and case-insensitive names, where an old spelling can refer to a 
different cached identity. Internal refreshes after content mutations keep 
their existing, narrower invalidation; edit logs without the new flag retain 
that behavior.
   
   ### Release note
   
   Explicit `REFRESH TABLE` now reloads external table names and table lookup 
identity.
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test: `ExternalDatabaseTest` and `RefreshManagerTest` (52 
tests)
       - [ ] Manual test
       - [ ] No need to test or manual test
   - Behavior changed:
       - [ ] No.
       - [x] Yes. Explicit `REFRESH TABLE` invalidates the FE table-name and 
lookup caches.
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   `./build.sh --fe -j4` passed, including Checkstyle.
   


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