From b8bb2c6645078b0c6c04f3e13c6c2c0e367c1cea Mon Sep 17 00:00:00 2001 From: zyguan Date: Wed, 21 Jun 2023 13:07:44 +0800 Subject: [PATCH] lock_resolver: let getTxnStatusFromLock return error when backoff timeout (#847) Signed-off-by: zyguan Co-authored-by: disksing --- txnkv/txnlock/lock_resolver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/txnkv/txnlock/lock_resolver.go b/txnkv/txnlock/lock_resolver.go index d457cbb6f..d4226df54 100644 --- a/txnkv/txnlock/lock_resolver.go +++ b/txnkv/txnlock/lock_resolver.go @@ -687,6 +687,7 @@ func (lr *LockResolver) getTxnStatusFromLock(bo *retry.Backoffer, l *Lock, calle // success before the primary region. if err := bo.Backoff(retry.BoTxnNotFound, err); err != nil { logutil.Logger(bo.GetCtx()).Warn("getTxnStatusFromLock backoff fail", zap.Error(err)) + return TxnStatus{}, err } } }