mirror of https://github.com/tikv/client-go.git
logs: downgrade some logs from ERROR to WARN and INFO (#1729)
ref pingcap/tidb#62704 Signed-off-by: ekexium <eke@fastmail.com>
This commit is contained in:
parent
6cbd7e4f97
commit
f3cd192d09
|
|
@ -1817,7 +1817,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("Async commit/1PC result undetermined",
|
logutil.Logger(ctx).Warn("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))
|
||||||
|
|
@ -2008,7 +2008,7 @@ func (c *twoPhaseCommitter) commitTxn(ctx context.Context, commitDetail *util.Co
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil {
|
if undeterminedErr := c.getUndeterminedErr(); undeterminedErr != nil {
|
||||||
logutil.Logger(ctx).Error("2PC commit result undetermined",
|
logutil.Logger(ctx).Warn("2PC commit 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))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue