You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it is found that due to llvm's SOO, current_task is actually not moved to cancel thread, in some corner cases, current_task will be destructed inside the loop:
It is very dangerous to deconstruct mpp task inside the loop since destruct a mpp task before all other mpp tasks are cancelled may cause some deadlock issues.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
In #5361, we try to move
current_task
to cancel thread inMPPTaskManager::cancelMPPQuery
, so MPPTask can be destruct parallelly:tiflash/dbms/src/Flash/Mpp/MPPTaskManager.cpp
Line 107 in 4ab1564
However, it is found that due to llvm's SOO,
current_task
is actually not moved to cancel thread, in some corner cases,current_task
will be destructed inside the loop:tiflash/dbms/src/Flash/Mpp/MPPTaskManager.cpp
Lines 102 to 108 in 4ab1564
It is very dangerous to deconstruct mpp task inside the loop since destruct a mpp task before all other mpp tasks are cancelled may cause some deadlock issues.
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiFlash version? (Required)
The text was updated successfully, but these errors were encountered: