From 41caf83538b00b69557539976317c0971fad617b Mon Sep 17 00:00:00 2001 From: hui lai <1353307710@qq.com> Date: Tue, 22 Oct 2024 14:39:47 +0800 Subject: [PATCH] [improve](cloud) add error msg when abort stream load transaction to meta service (#42148) --- be/src/cloud/cloud_meta_mgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/be/src/cloud/cloud_meta_mgr.cpp b/be/src/cloud/cloud_meta_mgr.cpp index 071c15d11e5516..02497f6a044b91 100644 --- a/be/src/cloud/cloud_meta_mgr.cpp +++ b/be/src/cloud/cloud_meta_mgr.cpp @@ -880,6 +880,7 @@ Status CloudMetaMgr::abort_txn(const StreamLoadContext& ctx) { AbortTxnRequest req; AbortTxnResponse res; req.set_cloud_unique_id(config::cloud_unique_id); + req.set_reason(std::string(ctx.status.msg().substr(0, 1024))); if (ctx.db_id > 0 && !ctx.label.empty()) { req.set_db_id(ctx.db_id); req.set_label(ctx.label);