This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 856ad8ad4c5 [chore](cloud) return detail message when commit txn
failed (#40584)
856ad8ad4c5 is described below
commit 856ad8ad4c5edd2fe8d580121fdc1b9e1a09f03e
Author: Xin Liao <[email protected]>
AuthorDate: Wed Sep 11 14:29:09 2024 +0800
[chore](cloud) return detail message when commit txn failed (#40584)
---
.../org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java
b/fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java
index d06369c49e1..eee2faff6f4 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java
@@ -564,8 +564,10 @@ public class CloudGlobalTransactionMgr implements
GlobalTransactionMgrIface {
StringBuilder internalMsgBuilder =
new StringBuilder("commitTxn failed, transactionId:");
internalMsgBuilder.append(transactionId);
- internalMsgBuilder.append(" code:");
+ internalMsgBuilder.append(", code:");
internalMsgBuilder.append(commitTxnResponse.getStatus().getCode());
+ internalMsgBuilder.append(", msg:");
+ internalMsgBuilder.append(commitTxnResponse.getStatus().getMsg());
throw new UserException("internal error, " +
internalMsgBuilder.toString());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]