Yukang-Lian opened a new pull request, #67587:
URL: https://github.com/apache/doris/pull/67587
### What problem does this PR solve?
Issue Number: None
Related PR: #66337
Problem Summary: Backport #66337 to `branch-4.0`.
While a schema change target tablet is `TABLET_NOTREADY`, cumulative
compaction should merge only older rowsets and leave the newest 10 versions
unmerged. The filter used the inverse comparison, so a compaction output could
cross the base tablet's maximum version and prevent incremental schema-change
conversion with `VERSION_ALREADY_MERGED`.
This change reverses the comparison in both local and Cloud size-based
cumulative compaction policies. It also adds focused unit-test coverage adapted
to the branch-4.0 test layout.
### Release note
Fix schema changes that could fail when cumulative compaction merged the
latest versions on the new tablet.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
- Focused local and Cloud unit tests are included; hosted CI is
requested with `run buildall`.
- `build-support/check-format.sh`: passed
- `git diff --check`: passed
- [ ] Manual test
- [ ] No need to test or manual test
- Behavior changed: Yes. `TABLET_NOTREADY` cumulative compaction now leaves
the latest 10 versions unmerged.
- Does this need documentation? No
--
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]