transaction: update undetermined error log (#531)

* update undetermined error log

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

* tiny change

Signed-off-by: Jack Yu <jackysp@gmail.com>
This commit is contained in:
Jack Yu 2022-06-20 10:56:30 +08:00 committed by GitHub
parent be31f33ba0
commit 98a4e2776e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 // 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. // are not RPC failures, we can return the actual error instead of undetermined.
if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil { 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.Error(err),
zap.NamedError("rpcErr", undeterminedErr), zap.NamedError("rpcErr", undeterminedErr),
zap.Uint64("txnStartTS", c.startTS)) zap.Uint64("txnStartTS", c.startTS))