-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[fix](cloud-mow) schema change should retry when encouter TXN_CONFILCT in cloud mode #46748
base: master
Are you sure you want to change the base?
Conversation
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TeamCity be ut coverage result: |
run buildall |
TPC-H: Total hot run time: 32783 ms
|
TPC-DS: Total hot run time: 188789 ms
|
ClickBench: Total hot run time: 31.59 s
|
TeamCity be ut coverage result: |
@@ -385,6 +385,10 @@ Status retry_rpc(std::string_view op_name, const Request& req, Response* res, | |||
} else if (res->status().code() == MetaServiceCode::INVALID_ARGUMENT) { | |||
return Status::Error<ErrorCode::INVALID_ARGUMENT, false>("failed to {}: {}", op_name, | |||
res->status().msg()); | |||
} else if (res->status().code() == | |||
MetaServiceCode::KV_TXN_CONFLICT_RETRY_EXCEEDED_MAX_TIMES) { | |||
return Status::Error<ErrorCode::DELETE_BITMAP_LOCK_ERROR, false>( |
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.
Why return such error for all rpc? DELETE_BITMAP_LOCK_ERROR is only used for delete
bitmap lock related rpc
For mow table, shcema change may encouter TXN_CONFILCT beacause of tow tablet trying to modify delete bitmap lock in the same time, which may lead to shcema change failed, so should add retry in fe.
What 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)