-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
executor: fix panic issue when handle HashAggExec.Close()
#46662
Conversation
Signed-off-by: TONG, Zhigao <tongzhigao@pingcap.com>
Hi @solotzg. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46662 +/- ##
================================================
+ Coverage 73.2845% 73.4532% +0.1687%
================================================
Files 1319 1343 +24
Lines 395898 408581 +12683
================================================
+ Hits 290132 300116 +9984
- Misses 87278 90029 +2751
+ Partials 18488 18436 -52
Flags with carried forward coverage won't be shown. Click here to find out more.
|
HashAggExec.Close()
@@ -327,7 +328,7 @@ func (e *HashAggExec) initForParallelExec(_ sessionctx.Context) { | |||
e.finalWorkers[i].finalResultHolderCh <- exec.NewFirstChunk(e) | |||
} | |||
|
|||
e.parallelExecInitialized = true |
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.
Can you write a test case for it?
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.
done
/cc @wshwsh12 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wshwsh12, XuHuaiyu 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 |
/retest |
@solotzg: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #41778
Problem Summary:
func (e *HashAggExec) Close() error
may be invoked multiple times and this part should guarantee idempotenttidb/executor/aggregate.go
Lines 267 to 291 in 6f1bdf7
What is changed and how it works?
parallelExecInitialized
toparallelExecValid
parallelExecValid
tofalse
after relevant channel closed.The result becomes like
ERROR 1815 (HY000): expression isnull(cast(test.ta.a1, var_string(4294967295))) cannot be pushed down
becausefunc (pc *PbConverter) encodeDatum
has not supported jsontidb/expression/expr_to_pb.go
Lines 97 to 155 in 6f1bdf7
Tests
Reproduction:
Result:
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.