From 768c2ea7f1e497f8a9a3ee374215dc11a485bd87 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 43d9a5837..37ce207b5 100644 --- a/txnkv/txnlock/lock_resolver.go +++ b/txnkv/txnlock/lock_resolver.go @@ -608,6 +608,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 } } }