Skip to content

Commit

Permalink
Fix a bug that MPP tasks may leak threads forever (pingcap#4241)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestwoody authored and JaySon-Huang committed Mar 17, 2022
1 parent 4662376 commit d647dfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dbms/src/Flash/Mpp/MPPTunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ void MPPTunnelBase<Writer>::connect(Writer * writer_)
{
std::unique_lock lk(mu);
if (connected)
throw Exception("has connected");
throw Exception("MPPTunnel has connected");
if (finished)
throw Exception("MPPTunnel has finished");

LOG_TRACE(log, "ready to connect");
if (is_local)
Expand Down

0 comments on commit d647dfd

Please sign in to comment.