-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve](cloud-mow) batch get tablet stats when get_delete_bitmap_update_lock #47281
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
| } else { | ||
| int32_t batch_size = config::max_mow_tablet_stat_num_per_batch; |
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.
How about adding some tests for this branch?
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.
+1, #45206 added many unit tests, this PR should update these tests as well
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.
enable this feature by default, so the original test works for it
f3495f5 to
535fc73
Compare
|
run buildall |
| stats_values.reserve(batch_size); | ||
| size_t num_acquired = request->tablet_indexes_size(); | ||
|
|
||
| for (size_t i = response->base_compaction_cnts_size(); i < num_acquired; i += batch_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.
Transaction::batch_get handled batch splitting inside(BatchGetOptions::concurrency), so don't need to do this in caller place?
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
zhannngchen
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
dataroaring
left a comment
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.
LGTM
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
as the title,

before:
after:

Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)