This is an automated email from the ASF dual-hosted git repository.

liaoxin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 41caf83538b [improve](cloud) add error msg when abort stream load 
transaction to meta service (#42148)
41caf83538b is described below

commit 41caf83538b00b69557539976317c0971fad617b
Author: hui lai <1353307...@qq.com>
AuthorDate: Tue Oct 22 14:39:47 2024 +0800

    [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 071c15d11e5..02497f6a044 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);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to