You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ga...@apache.org on 2023/06/02 07:10:45 UTC

[doris] branch master updated: [enhancement](txn) print commit backends when commit fails (#20367)

This is an automated email from the ASF dual-hosted git repository.

gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new b1e6c6ffe5 [enhancement](txn) print commit backends when commit fails (#20367)
b1e6c6ffe5 is described below

commit b1e6c6ffe5a47ffb7b93f8ce9e304f5e894ab3c2
Author: Yongqiang YANG <98...@users.noreply.github.com>
AuthorDate: Fri Jun 2 15:10:38 2023 +0800

    [enhancement](txn) print commit backends when commit fails (#20367)
    
    Print commit backends when a commit fails.
---
 .../java/org/apache/doris/transaction/DatabaseTransactionMgr.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java b/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java
index 5d6b94bfbb..92c46307e5 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java
@@ -566,10 +566,10 @@ public class DatabaseTransactionMgr {
                         if (successReplicaNum < quorumReplicaNum) {
                             LOG.warn("Failed to commit txn [{}]. "
                                             + "Tablet [{}] success replica num is {} < quorum replica num {} "
-                                            + "while error backends {} error replica info {}",
+                                            + "while error backends {} error replica info {} commitBackends {}",
                                     transactionState.getTransactionId(), tablet.getId(), successReplicaNum,
                                     quorumReplicaNum, Joiner.on(",").join(errorBackendIdsForTablet),
-                                    errorReplicaInfo);
+                                    errorReplicaInfo, commitBackends);
                             throw new TabletQuorumFailedException(transactionState.getTransactionId(), tablet.getId(),
                                     successReplicaNum, quorumReplicaNum,
                                     errorBackendIdsForTablet);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org