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

   ### What problem does this PR solve?
   
   This is a test-only reproduction for DORIS-26807.
   
   It makes `AlterMTMVTest.testAlterMTMV` check the relation cache directly 
after:
   
   ```sql
   CREATE MATERIALIZED VIEW mv_a BUILD DEFERRED REFRESH COMPLETE ON MANUAL ...
   ALTER MATERIALIZED VIEW mv_a RENAME mv_b;
   ```
   
   The relation cache should remove `mv_a` and contain `mv_b` after the rename.
   
   ### Why test-only?
   
   The existing branch-4.1 test uses `BUILD IMMEDIATE`, so an asynchronous 
refresh can occasionally refresh the relation cache after rename and hide the 
synchronous rename-path bug. This PR switches the case to `BUILD DEFERRED ... 
ON MANUAL` and reads `getMtmvsByBaseTable(...)` directly to avoid that timing 
dependency.
   
   This PR is expected to fail before the product fix. If CI reproduces the 
failure deterministically, a follow-up PR will fix the MTMV rename 
relation-cache update path.
   
   ### Check
   
   - `git diff --check`
   


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