From 6eba6ec6acbf1f57889d9a64b925b53261c35e11 Mon Sep 17 00:00:00 2001 From: Changxin Miao Date: Thu, 15 Oct 2026 16:42:06 +0800 Subject: [PATCH] transaction: let check_txn_status surface TxnNotFound check_txn_status merged the response before extract_error, so a TxnNotFound key error came back as MultipleKeyErrors instead of ExtractedErrors. The match never mapped it to Error::TxnNotFound, and get_txn_status_from_lock skipped its backoff and never retried with rollback_if_not_exist, leaving expired orphan locks unresolved. Extract errors before merging, like the other plans do. Signed-off-by: Changxin Miao --- src/transaction/lock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transaction/lock.rs b/src/transaction/lock.rs index 98bb36837..140414512 100644 --- a/src/transaction/lock.rs +++ b/src/transaction/lock.rs @@ -494,8 +494,8 @@ impl LockResolver { ); let plan = crate::request::PlanBuilder::new(pd_client.clone(), keyspace, req) .retry_multi_region(DEFAULT_REGION_BACKOFF) - .merge(CollectSingle) .extract_error() + .merge(CollectSingle) .post_process_default() .plan(); let mut status: TransactionStatus = match plan.execute().await {