-
Notifications
You must be signed in to change notification settings - Fork 411
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
TiFlash crash when Aggregation FailPoints in createAggregateStates triggers #5356
Comments
I try this failpoint by using master code and find there is no crash. The bug is very likely caused by the aggregation of non-joined data after an exception happened. In my previous attempt, I change the code line of 201 to tiflash/dbms/src/DataStreams/ParallelAggregatingBlockInputStream.cpp Lines 192 to 202 in 764bd3c
Then the crash doesn't happen anymore because the aggregation code of non-joined data isn't triggered. (see the code below) tiflash/dbms/src/Interpreters/Aggregator.cpp Lines 519 to 529 in 764bd3c
However, this line of code doesn't change at present. In this PR, if an exception happens, the non-join data will not be fetched anymore so the aggregation code of them will not be triggered as well. By the way, I think the code line of 201 still needs to be changed though it seems no harm for now. tiflash/dbms/src/DataStreams/ParallelAggregatingBlockInputStream.cpp Lines 192 to 202 in 764bd3c
|
The bug is introduced by #3434. So it should be fixed in all versions after 5.0. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
TiFlash no crash.
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
v6.2.0-alpha-nightly-20220710
The text was updated successfully, but these errors were encountered: