shuke987 opened a new pull request, #65706:
URL: https://github.com/apache/doris/pull/65706
### What problem does this PR solve?
Issue Number: DORIS-26710
Related PR: #64954
Problem Summary:
`test_mow_compact_multi_segments` always enabled the cloud
cumulative-compaction rowset-selection debug point. In local storage mode that
hook was ignored, so the updated default policy could legally merge versions 2
and 3. The case then failed because it still expected a separate third rowset.
This patch selects the rowset-selection debug point according to
`isCloudMode()`:
- cloud mode uses
`CloudSizeBasedCumulativeCompactionPolicy::pick_input_rowsets.set_input_rowsets`
- local mode uses
`SizeBasedCumulativeCompactionPolicy::pick_input_rowsets.set_input_rowsets`
It also replaces stale exact input segment counts with the intended semantic
checks: each selected input rowset must contain multiple segments before
compaction and exactly one segment afterward. The existing query and stale
delete-bitmap cleanup coverage is preserved.
### Release note
None
### Check List (For Author)
- Test:
- Regression framework compilation passed.
- The modified suite compiled successfully with Groovy 4.0.19.
- Target-file `git diff --check` passed.
- Exact local/cloud runtime regression is pending a confirmed test
environment.
- Behavior changed: No
- 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]