-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](compaction) Make creating tablet idempotently to keep compaction Job idempotent #56061
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:
|
|
run buildall |
fa263f4 to
7505926
Compare
9fbdea8 to
0a028ca
Compare
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
7a8dd26 to
c236e70
Compare
|
run buildall |
c236e70 to
e660827
Compare
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
e660827 to
748c320
Compare
|
run buildall |
Cloud UT Coverage ReportIncrement line coverage Increment coverage report
|
|
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
…n Job idempotent (apache#56061) If rpc create_tablets is not idempotent, it will recreate tablet stats, which is tragic for compaction task idempotence ``` if (compaction.base_compaction_cnt() < stats.base_compaction_cnt() || compaction.cumulative_compaction_cnt() < stats.cumulative_compaction_cnt()) { code = MetaServiceCode::STALE_TABLET_CACHE; SS << "could not perform compaction on expired tablet cache." << " req_base_compaction_cnt=" << compaction.base_compaction_cnt() << ", base_compaction_cnt=" << stats.base_compaction_cnt() << ", req_cumulative_compaction_cnt=" << compaction.cumulative_compaction_cnt() << ", cumulative_compaction_cnt=" << stats.cumulative_compaction_cnt(); msg = ss.str(); return; } ```
…n Job idempotent (apache#56061) If rpc create_tablets is not idempotent, it will recreate tablet stats, which is tragic for compaction task idempotence ``` if (compaction.base_compaction_cnt() < stats.base_compaction_cnt() || compaction.cumulative_compaction_cnt() < stats.cumulative_compaction_cnt()) { code = MetaServiceCode::STALE_TABLET_CACHE; SS << "could not perform compaction on expired tablet cache." << " req_base_compaction_cnt=" << compaction.base_compaction_cnt() << ", base_compaction_cnt=" << stats.base_compaction_cnt() << ", req_cumulative_compaction_cnt=" << compaction.cumulative_compaction_cnt() << ", cumulative_compaction_cnt=" << stats.cumulative_compaction_cnt(); msg = ss.str(); return; } ```
…mpotently to keep compaction Job idempotent (apache#4688) pick: apache#56061
What problem does this PR solve?
If rpc create_tablets is not idempotent, it will recreate tablet stats, which is tragic for compaction task idempotence
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)