Skip to content

Commit

Permalink
mpp task handle pingcap exception (#4102) (#4111)
Browse files Browse the repository at this point in the history
close #4101
  • Loading branch information
ti-chi-bot authored Jun 20, 2022
1 parent eb4a417 commit 02dfb20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dbms/src/Flash/Mpp/MPPHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,17 @@ void MPPTask::runImpl()
LOG_ERROR(log, "task running meets error " << e.displayText() << " Stack Trace : " << e.getStackTrace().toString());
writeErrToAllTunnel(e.displayText());
}
catch (pingcap::Exception & e)
{
LOG_ERROR(log, "task running meets error " << e.message());
writeErrToAllTunnel(e.message());
}
catch (std::exception & e)
{
LOG_ERROR(log, "task running meets error " << e.what());
writeErrToAllTunnel(e.what());
}

catch (...)
{
LOG_ERROR(log, "unrecovered error");
Expand Down

0 comments on commit 02dfb20

Please sign in to comment.