-
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 query hang on hash aggregate operator #6982
Conversation
/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
where is the added tests?
@winoros Test is on the tidb-private-test, no need to add |
@zz-jason It can also improve the test coverage. Unit test doesn't cover |
LGTM |
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
I will merge this to save the CI. |
What have you changed? (mandatory)
there can be a situation that the final worker of hash aggregate can be blocked in receiving from the
finalResultHolderCh
and the main thread blocked in receiving from thefinalOutputCh
, which is closed when final worker exits.actually the final work should be able to detect the query is finished when receiving from the
finalResultHolderCh
, so I use aselect
to do the receiving work.What are the type of the changes (mandatory)?
How has this PR been tested (mandatory)?