Skip to content

Commit

Permalink
Exception msg (#4443) (#4447)
Browse files Browse the repository at this point in the history
close #4422
  • Loading branch information
ti-chi-bot authored Mar 27, 2022
1 parent 81025ae commit a1f9ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/Flash/Mpp/MPPTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,11 @@ void MPPTask::scheduleOrWait()

if (schedule_state == ScheduleState::EXCEEDED)
{
throw Exception("{} is failed to schedule because of exceeding the thread hard limit in min-tso scheduler after waiting for {}s.", id.toString(), time_cost);
throw Exception(fmt::format("{} is failed to schedule because of exceeding the thread hard limit in min-tso scheduler after waiting for {}s.", id.toString(), time_cost));
}
else if (schedule_state == ScheduleState::FAILED)
{
throw Exception("{} is failed to schedule because of being cancelled in min-tso scheduler after waiting for {}s.", id.toString(), time_cost);
throw Exception(fmt::format("{} is failed to schedule because of being cancelled in min-tso scheduler after waiting for {}s.", id.toString(), time_cost));
}
}
LOG_FMT_INFO(log, "task waits for {} s to schedule and starts to run in parallel.", time_cost);
Expand Down

0 comments on commit a1f9ddb

Please sign in to comment.