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 0e8cfbd2b3f branch-3.0: [fix](transaction) limit abort txn reason to
avoid value length exceeds limit error #50152 (#50208)
0e8cfbd2b3f is described below
commit 0e8cfbd2b3ff0194b9bc2a71659a259cf29c0bc0
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Tue Apr 22 10:19:45 2025 +0800
branch-3.0: [fix](transaction) limit abort txn reason to avoid value length
exceeds limit error #50152 (#50208)
Cherry-picked from #50152
Co-authored-by: hui lai <[email protected]>
---
.../org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java | 3 +++
1 file changed, 3 insertions(+)
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 b526c5886e0..d3dae1c0762 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
@@ -1299,6 +1299,9 @@ public class CloudGlobalTransactionMgr implements
GlobalTransactionMgrIface {
LOG.info("try to abort transaction, dbId:{}, transactionId:{}, reason:
{}", dbId, transactionId, reason);
AbortTxnRequest.Builder builder = AbortTxnRequest.newBuilder();
+ if (reason != null && reason.length() > 1024) {
+ reason = reason.substring(0, 1024) + " ... (reason is truncated,
check fe.log with txnId for details)";
+ }
builder.setDbId(dbId);
builder.setTxnId(transactionId);
builder.setReason(reason);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]