Skip to content

Commit

Permalink
Fix a bug that MPP tasks may leak threads forever (#4241) (#4644)
Browse files Browse the repository at this point in the history
close #4238
  • Loading branch information
ti-chi-bot authored Apr 14, 2022
1 parent 98ae1a4 commit 92566c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbms/src/Flash/Mpp/MPPHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ struct MPPTunnel
{
throw Exception("has connected");
}
if (finished)
throw Exception("has finished");
LOG_DEBUG(log, "ready to connect");
connected = true;
writer = writer_;
Expand Down

0 comments on commit 92566c4

Please sign in to comment.