-
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
a query is hanged when one of subqueries of CreatingSet throw exceptions #4195
Comments
root cause:
the second subquery has a join probe, whitch depends on the first subquery. if the first finished with exceptions or not, it should set the FinishBuild CV to be true, otherwise the second subquery will be blocked. we set the log before and after the FinishBuild CV, some thread just outputs the log before the CV, lacking the after one.
|
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
issue 120 112.sql to tiflash
2. What did you expect to see? (Required)
3. What did you see instead (Required)
the minTSO query is blocked thus all queries are blocked.
4. What is your TiFlash version? (Required)
master
the task 9 is hanged, which contains three pipelines.
we found the last log is missed, so infer the wait() is blocked. The wait() waits the future being ready from the packed_task, which executes the createOne(). the is a bug when the createOne() does not catch all exceptions, the futrue is blocked.
The text was updated successfully, but these errors were encountered: