Skip to content

[Opt](cloud-mow) Do fast retry when commit compaction job for mow tablet - #52476

Merged
dataroaring merged 4 commits into
apache:masterfrom
bobhan1:fast-retry-for-mow-compaction-job-commit
Jul 7, 2025
Merged

[Opt](cloud-mow) Do fast retry when commit compaction job for mow tablet#52476
dataroaring merged 4 commits into
apache:masterfrom
bobhan1:fast-retry-for-mow-compaction-job-commit

Conversation

@bobhan1

@bobhan1bobhan1 commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Before:

image

After

image

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

@Thearas

Copy link
Copy Markdown
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?

@bobhan1
bobhan1force-pushed the fast-retry-for-mow-compaction-job-commit branch from 922e0ed to 142bae5CompareJune 30, 2025 02:40
@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

Cloud UT Coverage Report

Increment line coverage 79.03% (49/62) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage83.51% (1170/1401)
Line Coverage67.40% (20616/30586)
Region Coverage67.02% (10256/15302)
Branch Coverage56.23% (5362/9536)

@bobhan1
bobhan1 marked this pull request as ready for review June 30, 2025 07:52
@bobhan1
bobhan1force-pushed the fast-retry-for-mow-compaction-job-commit branch 2 times, most recently from 97ee8a6 to abde7f0CompareJuly 1, 2025 02:30
zhannngchen
zhannngchen previously approved these changes Jul 1, 2025

@zhannngchenzhannngchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Jul 1, 2025
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

return;
}
for (int retry = 0; retry <= 1; retry++) {
response->Clear();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

msg should be empty.

}
}

if (retry == 0 && !request->job().compaction().empty() &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

fast retry only when the err is TxnErrorCode::TXN_CONFLICT?

@bobhan1
bobhan1force-pushed the fast-retry-for-mow-compaction-job-commit branch from abde7f0 to 233e234CompareJuly 1, 2025 08:21
@github-actionsgithub-actionsBot removed the approved Indicates a PR has been approved by one committer. label Jul 1, 2025
@bobhan1

Copy link
Copy Markdown
ContributorAuthor

run buildall

@doris-robot

Copy link
Copy Markdown

Cloud UT Coverage Report

Increment line coverage 75.38% (49/65) 🎉

Increment coverage report
Complete coverage report

CategoryCoverage
Function Coverage83.51% (1170/1401)
Line Coverage67.42% (20622/30589)
Region Coverage67.02% (10256/15302)
Branch Coverage56.25% (5364/9536)

@zhannngchenzhannngchen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@github-actionsgithub-actionsBot added the approved Indicates a PR has been approved by one committer. label Jul 4, 2025
@github-actions

Copy link
Copy Markdown
Contributor

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

@dataroaringdataroaring left a comment

Copy link
Copy Markdown
Contributor

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 285b1e4 into apache:masterJul 7, 2025
morrySnow pushed a commit that referenced this pull request Jul 7, 2025
… for mow tablet #52476 (#52843)
Cherry-picked from #52476
Co-authored-by: bobhan1 <baohan@selectdb.com>
etah000 pushed a commit to etah000/doris that referenced this pull request Jul 7, 2025
… for mow tablet apache#52476 (apache#52843)
Cherry-picked from apache#52476
Co-authored-by: bobhan1 <baohan@selectdb.com>
dataroaring pushed a commit that referenced this pull request Jul 9, 2025
@gavinchougavinchou mentioned this pull request Aug 15, 2025
csun5285 pushed a commit to csun5285/doris that referenced this pull request Sep 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approvedIndicates a PR has been approved by one committer.dev/3.0.7-mergeddev/3.1.0-mergedreviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@bobhan1@Thearas@hello-stephen@doris-robot@mymeiyi@zhannngchen@dataroaring@morrySnow