gavinchou commented on code in PR #50152:
URL: https://github.com/apache/doris/pull/50152#discussion_r2049170186


##########
fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java:
##########
@@ -1403,6 +1403,9 @@ private AbortTxnResponse abortTransactionImpl(Long dbId, 
Long transactionId, Str
         LOG.info("try to abort transaction, dbId:{}, transactionId:{}, reason: 
{}", dbId, transactionId, reason);
 
         AbortTxnRequest.Builder builder = AbortTxnRequest.newBuilder();
+        if (reason.length() > 1024) {
+            reason = reason.substring(0, 1024);

Review Comment:
   ```suggestion
               reason = reason.substring(0, 1024) + " ... (reason is truncated, 
check fe.log with txnId for details)"
   ```



##########
fe/fe-core/src/main/java/org/apache/doris/cloud/transaction/CloudGlobalTransactionMgr.java:
##########
@@ -1403,6 +1403,9 @@ private AbortTxnResponse abortTransactionImpl(Long dbId, 
Long transactionId, Str
         LOG.info("try to abort transaction, dbId:{}, transactionId:{}, reason: 
{}", dbId, transactionId, reason);
 
         AbortTxnRequest.Builder builder = AbortTxnRequest.newBuilder();
+        if (reason.length() > 1024) {
+            reason = reason.substring(0, 1024);

Review Comment:
   ```suggestion
               reason = reason.substring(0, 1024) + " ... (reason is truncated, 
check fe.log with txnId for details)";
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to