This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new feabdd2 [FE][Log] Add log for abort transaction. (#5168)
feabdd2 is described below
commit feabdd22f973df3bf8c3aebfa56c50797467d603
Author: 曹建华 <[email protected]>
AuthorDate: Mon Jan 4 09:34:11 2021 +0800
[FE][Log] Add log for abort transaction. (#5168)
Currently there is no abort transaction related log. When troubleshooting
transaction failure
related problems, we need to use some debug tools to find the failed
transaction,
so we'd better add a log when abort transaction
---
.../main/java/org/apache/doris/transaction/DatabaseTransactionMgr.java | 2 ++
1 file changed, 2 insertions(+)
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 85ed3a5..f5c2b40 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
@@ -951,6 +951,8 @@ public class DatabaseTransactionMgr {
if (txnOperated && transactionState.getTransactionStatus() ==
TransactionStatus.ABORTED) {
clearBackendTransactions(transactionState);
}
+
+ LOG.info("abort transaction: {} successfully", transactionState);
}
private boolean unprotectAbortTransaction(long transactionId, String
reason)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]