Skip to content

Commit

Permalink
Fix the bug that canceled MPP query may cause tasks hang forever when…
Browse files Browse the repository at this point in the history
… local tunnel is enabled. (#4219) (#4236)

close #4229
  • Loading branch information
ti-chi-bot authored Apr 14, 2022
1 parent bf2edf2 commit f013d89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbms/src/Flash/Mpp/MPPTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ void MPPTask::runImpl()
}
else
{
context.getProcessList().sendCancelToQuery(context.getCurrentQueryId(), context.getClientInfo().current_user, true);
writeErrToAllTunnels(err_msg);
}
LOG_INFO(log, "task ends, time cost is " << std::to_string(stopwatch.elapsedMilliseconds()) << " ms.");
Expand Down

0 comments on commit f013d89

Please sign in to comment.