[opt](txn lazy commit) Make convert tmp rowsets batch more adaptive#55035
[opt](txn lazy commit) Make convert tmp rowsets batch more adaptive#55035dataroaring merged 2 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
9b88f34 to
2a06431
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
|
|
||
| // fdb txn limit 10MB, we use 4MB as the max size for each batch. | ||
| size_t max_rowsets_per_batch = config::txn_lazy_max_rowsets_per_batch; | ||
| if (max_rowset_meta_size > 0) { |
There was a problem hiding this comment.
4L << 20 / max_rowset_meta_size 这个表达是是错的 应该会先算 除法 再移位 .
这里最好加个syncpoint 用来观察 实际 max_rowset_meta_size 是多少, 在单测里通通过 syncpoint来 check 它的值
There was a problem hiding this comment.
4L << 20 / max_rowset_meta_size这个表达是是错的 应该会先算 除法 再移位 . 这里最好加个syncpoint 用来观察 实际 max_rowset_meta_size 是多少, 在单测里通通过 syncpoint来 check 它的值
done
2a06431 to
017d294
Compare
|
run buildall |
* default txn_lazy_max_rowsets_per_batch is 1000, when RowsetMetaCloudPB size exceeds `10MB / 1000`, fdb will refuse kv_txn, so we calculate batch size dynamically
|
run buildall |
017d294 to
79e46e5
Compare
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
|
PR approved by at least one committer and no changes requested. |
…pache#55035) * default txn_lazy_max_rowsets_per_batch is 1000, when RowsetMetaCloudPB size exceeds `10MB / 1000`, fdb will refuse kv_txn, so we calculate batch size dynamically
…pache#55035) * default txn_lazy_max_rowsets_per_batch is 1000, when RowsetMetaCloudPB size exceeds `10MB / 1000`, fdb will refuse kv_txn, so we calculate batch size dynamically
…pache#55035) * default txn_lazy_max_rowsets_per_batch is 1000, when RowsetMetaCloudPB size exceeds `10MB / 1000`, fdb will refuse kv_txn, so we calculate batch size dynamically
…55035) (#55574) * default txn_lazy_max_rowsets_per_batch is 1000, when RowsetMetaCloudPB size exceeds `10MB / 1000`, fdb will refuse kv_txn, so we calculate batch size dynamically ### What problem does this PR solve? Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [x] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: apache/doris-website#1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
10MB / 1000, fdb will refuse kv_txn, so we calculate batch size dynamicallyWhat problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)