From ef92db18a1dceca2bc22a38da5decf37e7aba3f1 Mon Sep 17 00:00:00 2001 From: zyguan Date: Wed, 12 Jul 2023 14:53:49 +0800 Subject: [PATCH] lock_resolver: let getTxnStatusFromLock return error when backoff timeout (#847) (#881) 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 1aa359eb5..b93b86eb4 100644 --- a/txnkv/txnlock/lock_resolver.go +++ b/txnkv/txnlock/lock_resolver.go @@ -696,6 +696,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 } } }