branch-3.1: [fix](mow) reduce mow delete bitmap count: agg and remove delete bitmap of pre rowsets when cu compaction (#49383)#52204
Merged
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
…ap of pre rowsets when cu compaction (apache#49383) This PR reduce delete bitmap count of mow tables 1. when do cumulative compaction [start_rowset, end_rowset], which version is [start_version, end_version] 2. agg pre_rowsets'(version less than start_version) delete bitmap between [start_version, end_version] to end_version, 3. when all of the rowsets of [start_rowset, end_rowset] are deleted, delete pre rowsets' delete bitmap between [start_version, end_version). suppose the rowset and delete bitmap layout is: ``` [rowset_id]: [delete bitmap] r1-3: v6, v7, v8, v9 r4-6: v7, v8, v9 r7: v8, v9 r8: v9 r9: ``` if do cumulative compaction for {r7, r8, r9} before this pr, the delete bitmap layout is (there is 7 delete bitmap left): ``` [rowset_id]: [delete bitmap] r1-3: v6, v7, v8, v9 r4-6: v7, v8, v9 r7-9: ``` after this pr (there is 3 delete bitmap left): ``` [rowset_id]: [delete bitmap] r1-3: v6, new_v9 // new_v9 is agged by the previous v7, v8, v9 of r1-3 r4-6: new_v9 // new_v9 is agged by the previous v7, v8, v9 of r4-6 r7-9: ``` 1. agged when delete stale rowset path 2. removed when delete unused rowsets `save_meta` to store delete bitmap after remove unused rowsets related delete bitmap 1. agged when delete stale rowset path 2. removed when delete unused rowsets 1. agged when finish compaction 2. send `update_delete_bitmap` to ms to modify and remove pre rowsets delete bitmap None
Contributor
Author
|
run buildall |
Contributor
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
TPC-H: Total hot run time: 39765 ms |
TPC-DS: Total hot run time: 196807 ms |
ClickBench: Total hot run time: 30.96 s |
morrySnow
approved these changes
Jun 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pick #49383