Skip to content

Conversation

@mymeiyi
Copy link
Contributor

@mymeiyi mymeiyi commented Jan 21, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

as the title,
before:
1

after:
2

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • 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
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

} else {
int32_t batch_size = config::max_mow_tablet_stat_num_per_batch;
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

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

@mymeiyi mymeiyi force-pushed the batch-get-2 branch 3 times, most recently from f3495f5 to 535fc73 Compare January 23, 2025 07:05
@mymeiyi
Copy link
Contributor Author

mymeiyi commented Jan 23, 2025

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) {
Copy link
Contributor

@bobhan1 bobhan1 Jan 24, 2025

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?

@mymeiyi
Copy link
Contributor Author

mymeiyi commented May 26, 2025

run buildall

@doris-robot
Copy link

Cloud UT Coverage Report

Increment line coverage 66.48% (117/176) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 83.26% (1114/1338)
Line Coverage 66.37% (18743/28240)
Region Coverage 66.03% (9301/14086)
Branch Coverage 55.80% (5005/8970)

Copy link
Contributor

@zhannngchen zhannngchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label May 27, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring dataroaring merged commit ca84354 into apache:master May 29, 2025
25 of 26 checks passed
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
mymeiyi added a commit to mymeiyi/doris that referenced this pull request Jun 19, 2025
mymeiyi added a commit to mymeiyi/doris that referenced this pull request Jun 23, 2025
mymeiyi added a commit to mymeiyi/doris that referenced this pull request Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.7-merged dev/3.1.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants