Skip to content

Commit

Permalink
transaction: update undetermined error log (#531)
Browse files Browse the repository at this point in the history
* update undetermined error log

Signed-off-by: Jack Yu <jackysp@gmail.com>

* tiny change

Signed-off-by: Jack Yu <jackysp@gmail.com>
  • Loading branch information
jackysp authored Jun 20, 2022
1 parent be31f33 commit 98a4e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txnkv/transaction/2pc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 98a4e27

Please sign in to comment.