From b8b5a9aa0a4e8d64d304feaaf8062d87ab558344 Mon Sep 17 00:00:00 2001 From: zyguan Date: Tue, 20 Jun 2023 12:32:16 +0800 Subject: [PATCH] lock_resolver: let getTxnStatusFromLock return error when backoff timeout Signed-off-by: zyguan --- 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 74caae652..184674b9a 100644 --- a/txnkv/txnlock/lock_resolver.go +++ b/txnkv/txnlock/lock_resolver.go @@ -693,6 +693,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 } } }