From 460dc00bd089d767bf3f913987457505cc91feee Mon Sep 17 00:00:00 2001 From: Zhuhe Fang Date: Fri, 25 Mar 2022 23:30:33 +0800 Subject: [PATCH] Exception msg (#4443) close pingcap/tiflash#4422 --- dbms/src/Flash/Mpp/MPPTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Flash/Mpp/MPPTask.cpp b/dbms/src/Flash/Mpp/MPPTask.cpp index 43d6949597b..707366e1799 100644 --- a/dbms/src/Flash/Mpp/MPPTask.cpp +++ b/dbms/src/Flash/Mpp/MPPTask.cpp @@ -436,11 +436,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);