-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix](rowset meta) Fix rowset meta size relation #41022
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
Tests will be added to verify the correction of this PR. |
run buildall |
1 similar comment
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add regression test to ensure the correctness from this PR on
TeamCity be ut coverage result: |
+1 |
run buildall |
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
run p0 |
a011c26
to
6738ab2
Compare
run buildall |
TeamCity be ut coverage result: |
PR approved by at least one committer and no changes requested. |
6738ab2
to
89bd9a2
Compare
run buildall |
run cloudut |
TeamCity be ut coverage result: |
@@ -830,7 +830,8 @@ Status BaseBetaRowsetWriter::_build_rowset_meta(RowsetMeta* rowset_meta, bool ch | |||
|
|||
rowset_meta->set_num_segments(segment_num); | |||
rowset_meta->set_num_rows(num_rows_written + _num_rows_written); | |||
rowset_meta->set_total_disk_size(total_data_size + _total_data_size); | |||
rowset_meta->set_total_disk_size(total_data_size + _total_data_size + total_index_size + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to use the formula total size = column data size + index size
, you need to modify the data size and index size statistics in the segment creator, vertical segment writer, and vertical beta rowset writer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, data size = segment file size + inverted index file size
, total size = data size
89bd9a2
to
a0eca9c
Compare
Proposed changes
Issue #40879 step 2
make rowset total size = rowset data size + rowset index size