branch-2.1: [improve](load) improve error message "unknown load_id" #47509 (#48639)

Cherry-picked from #47509

Co-authored-by: Kaijie Chen <chenkaijie@selectdb.com>
This commit is contained in:
github-actions[bot]
2025-03-05 10:11:24 +08:00
committed by GitHub
parent 74b85d6bff
commit be6210d742

View File

@ -122,8 +122,10 @@ Status LoadChannelMgr::_get_load_channel(std::shared_ptr<LoadChannel>& channel,
return Status::OK();
}
}
return Status::InternalError("fail to add batch in load channel. unknown load_id={}",
load_id.to_string());
return Status::InternalError<false>(
"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();