From 98a4e2776e38117aba89c54a80575a993a701fa7 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Mon, 20 Jun 2022 10:56:30 +0800 Subject: [PATCH] transaction: update undetermined error log (#531) * update undetermined error log Signed-off-by: Jack Yu * tiny change Signed-off-by: Jack Yu --- txnkv/transaction/2pc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/txnkv/transaction/2pc.go b/txnkv/transaction/2pc.go index 04231c413e..96070cd4e1 100644 --- a/txnkv/transaction/2pc.go +++ b/txnkv/transaction/2pc.go @@ -1417,7 +1417,7 @@ func (c *twoPhaseCommitter) execute(ctx context.Context) (err error) { // RPCs fails. However, if there are multiple errors and some of the errors // are not RPC failures, we can return the actual error instead of undetermined. if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil { - logutil.Logger(ctx).Error("2PC commit result undetermined", + logutil.Logger(ctx).Error("Async commit/1PC result undetermined", zap.Error(err), zap.NamedError("rpcErr", undeterminedErr), zap.Uint64("txnStartTS", c.startTS))