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 e8c8709c4a7 branch-3.0: [improve](meta-service) improve error message 
"Transaction exceeds byte limit" #47507 (#48324)
e8c8709c4a7 is described below

commit e8c8709c4a749eaddda18a3b7f633f7283213e53
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Feb 26 10:16:24 2025 +0800

    branch-3.0: [improve](meta-service) improve error message "Transaction 
exceeds byte limit" #47507 (#48324)
    
    Cherry-picked from #47507
    
    Co-authored-by: Kaijie Chen <[email protected]>
---
 cloud/src/meta-service/meta_service_txn.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cloud/src/meta-service/meta_service_txn.cpp 
b/cloud/src/meta-service/meta_service_txn.cpp
index b0dbbb40674..8bec142e13c 100644
--- a/cloud/src/meta-service/meta_service_txn.cpp
+++ b/cloud/src/meta-service/meta_service_txn.cpp
@@ -2591,6 +2591,10 @@ void 
MetaServiceImpl::commit_txn(::google::protobuf::RpcController* controller,
                                instance_id, db_id, tmp_rowsets_meta, err);
         if ((MetaServiceCode::OK == code) || 
(TxnErrorCode::TXN_BYTES_TOO_LARGE != err) ||
             !allow_txn_lazy_commit) {
+            if (err == TxnErrorCode::TXN_BYTES_TOO_LARGE) {
+                msg += ", likely due to committing too many tablets. "
+                       "Please reduce the number of partitions involved in the 
load.";
+            }
             return;
         }
         DCHECK(code != MetaServiceCode::OK);


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

Reply via email to