Skip to content

Commit

Permalink
[improve](cloud) add error msg when abort stream load transaction to …
Browse files Browse the repository at this point in the history
…meta service (apache#42148)
  • Loading branch information
sollhui authored Oct 22, 2024
1 parent 9e5f9cb commit 41caf83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions be/src/cloud/cloud_meta_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41caf83

Please sign in to comment.