-
Notifications
You must be signed in to change notification settings - Fork 409
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 integration test of parallel prehandling #8245
Conversation
/run-all-tests |
1 similar comment
/run-all-tests |
@@ -189,7 +181,10 @@ static inline std::tuple<ReadFromStreamResult, PrehandleResult> executeTransform | |||
if (stream->isAbort()) | |||
{ | |||
stream->cancel(); | |||
res = ReadFromStreamResult{.error = ReadFromStreamError::Aborted, .extra_msg = "", .region = new_region}; | |||
res = ReadFromStreamResult{ |
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.
When abort, we will use abort_error, which is by default Aborted, but sometimes could be other value.
which unstable test case is caused by this issue? |
RegionKVStoreV2Test.KVStoreSingleSnapXXX4 @JaySon-Huang |
@@ -22,14 +22,35 @@ | |||
|
|||
namespace DB | |||
{ | |||
enum class ReadFromStreamError |
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.
I think PrehandleError
or PrehandleStatus
is a more reasonable name here
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.
Renamed to PrehandleTransformStatus
, because there is a PrehandleResult
for the whole prehandle process
The fix of #8199 (comment) is not pushed? |
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
Signed-off-by: CalvinNeo <calvinneo1995@gmail.com>
/run-all-tests |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JaySon-Huang, JinheLin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/run-all-tests |
What problem does this PR solve?
Issue Number: close #8246
Problem Summary:
The problem is when a retryable exception is thrown in a thread, it will notify other thread to abort. As a result, other thread will abort. If the abort result is captured before the retryable result by head split, it will abort directly without retry.
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note