shuke987 opened a new pull request, #65463:
URL: https://github.com/apache/doris/pull/65463
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #61290
Problem Summary:
`test_alter_job_mtmv` can create the initial `SYSTEM` task and the later
`COMMIT` task within the same second. The `tasks()` TVF exposes `CreateTime` at
second precision, so `order by CreateTime desc limit 1` can select the canceled
`SYSTEM` task even when the intended `COMMIT` task is running and subsequently
succeeds.
Pass the expected trigger mode to
`waitingMTMVTaskFinishedByMvNameAllowCancel` and filter `TaskContext` so this
case waits specifically for the `COMMIT` task triggered by the insert. The
existing `same table` compatibility behavior is unchanged.
### Release note
None
### Check List (For Author)
- Test
- [ ] Regression test
- [ ] Unit Test
- [x] Manual test
- `mvn -f regression-test/framework/pom.xml -DskipTests compile`
(`BUILD SUCCESS`, 448 Groovy files compiled)
- Targeted runtime regression was not run because no test cluster
was allocated.
- [ ] No need to test or manual test. Explain why:
- Behavior changed:
- [x] No.
- [ ] Yes.
- Does this need documentation?
- [x] No.
- [ ] Yes.
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label
--
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]