From f312b96ef1e82527dda2ac8a0072da23a31bae87 Mon Sep 17 00:00:00 2001 From: Kaijie Chen Date: Tue, 4 Mar 2025 20:07:26 +0800 Subject: [PATCH] [improve](load) improve error message "unknown load_id" (#47509) Issue Number: DORIS-18129 Problem Summary: 1. Remove stack trace when "unknown load_id". 2. Suggest user to retry the load when this error occurs. --- be/src/runtime/load_channel_mgr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/be/src/runtime/load_channel_mgr.cpp b/be/src/runtime/load_channel_mgr.cpp index c53cade466be04..014fa146e3c767 100644 --- a/be/src/runtime/load_channel_mgr.cpp +++ b/be/src/runtime/load_channel_mgr.cpp @@ -126,8 +126,10 @@ Status LoadChannelMgr::_get_load_channel(std::shared_ptr& channel, return Status::OK(); } } - return Status::InternalError("fail to add batch in load channel. unknown load_id={}", - load_id.to_string()); + return Status::InternalError( + "Fail to add batch in load channel: unknown load_id={}. " + "This may be due to a BE restart. Please retry the load.", + load_id.to_string()); } channel = it->second; return Status::OK();