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

   ### What problem does this PR solve?
   
   Backport the AlterMTMVTest deflake from #56997 to branch-4.1.
   
   On branch-4.1, `testAlterMTMV` creates an MTMV with `BUILD IMMEDIATE` and 
then asserts the rename result through `getCandidateMTMVs()`. Candidate 
collection depends on refresh/candidate-ready state, so the test can observe a 
legal intermediate state before the async refresh path has finished.
   
   The test intent here is to verify that the MTMV relation mapping is updated 
after renaming `mv_a` to `mv_b`, and that an MTMV cannot be used as the 
replacement target for `ALTER TABLE ... REPLACE WITH TABLE`.
   
   ### What is changed?
   
   Use the same shape as the master-side fix in #56997:
   
   - create the MTMV with `BUILD DEFERRED`
   - assert the relation mapping through `getMtmvsByBaseTable(...)`
   - keep the original rename and replace-table assertions
   
   ### Check List
   
   - [x] `git diff --check`
   - [x] `./run-fe-ut.sh --run org.apache.doris.mtmv.AlterMTMVTest` reached 
`Tests run: 1, Failures: 0, Errors: 0`; the remaining Maven reactor was 
interrupted after the target test per local handoff decision
   
   Related: DORIS-26807
   


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