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

   ### What problem does this PR solve?
   
   Issue Number: close #65389
   
   Related PR: #xxx
   
   Problem Summary:
   
   After a table stream is created, dropping its base table can leave the 
stream with a cached Java reference to the dropped table object. 
`information_schema.table_streams` then treats the cached reference as 
available and continues to show the dropped base table name.
   
   This PR invalidates a cached base table reference when the cached table has 
been marked dropped, so the existing metadata path reports the base table 
fields as `N/A`. It also adds a regression case for the live in-memory path: 
create base table, create stream, drop the base table with `FORCE`, then query 
`information_schema.table_streams`.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [x] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   Added 
`regression-test/suites/table_stream_p0/test_table_stream_base_table_unavailable.groovy`.
   
   Local verification:
   
   - `git diff --check`
   - Not run: `./run-regression-test.sh --run -f 
regression-test/suites/table_stream_p0/test_table_stream_base_table_unavailable.groovy`
 could not run in my local environment because `mvn` is not installed.
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. `information_schema.table_streams` now reports `N/A` for base 
table metadata when the cached base table has been dropped.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->


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