Yukang-Lian opened a new pull request, #67591:
URL: https://github.com/apache/doris/pull/67591
### What problem does this PR solve?
Issue Number: None
Related PR: #66610
Problem Summary: Backport #66610 to `branch-3.1`.
Cloud cumulative compaction scheduling updates an approximate score before
rowset metadata is synchronized. Zero-segment rowsets previously added zero to
this score, although synchronized metadata counts each empty rowset as one.
Empty rowsets could therefore accumulate without raising tablet scheduling
priority.
This change counts every zero-segment load and delete rowset as one while
preserving the existing segment-based estimate for non-empty `PREPARED` rowsets.
### Release note
Fix cloud cumulative compaction scheduling for empty rowsets.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
- Focused unit-test coverage is 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. Zero-segment rowsets now add one to the approximate
cumulative compaction score.
- 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]