From ea2c4b8a1be004ad4d55b09857bdf3c30060840b Mon Sep 17 00:00:00 2001 From: Kevin Chou Date: Tue, 30 Dec 2025 18:58:17 +0800 Subject: [PATCH] fix ReadLocalOp assert --- tx_service/src/tx_operation.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tx_service/src/tx_operation.cpp b/tx_service/src/tx_operation.cpp index dd91210c..27ddf106 100644 --- a/tx_service/src/tx_operation.cpp +++ b/tx_service/src/tx_operation.cpp @@ -303,7 +303,9 @@ void ReadLocalOperation::Forward(txservice::TransactionExecution *txm) { assert(hd_result_->ErrorCode() == CcErrorCode::ACQUIRE_KEY_LOCK_FAILED_FOR_RW_CONFLICT || - hd_result_->ErrorCode() == CcErrorCode::DATA_STORE_ERR); + hd_result_->ErrorCode() == CcErrorCode::DATA_STORE_ERR || + hd_result_->ErrorCode() == + CcErrorCode::LEADER_NODE_UNREACHABLE); // If acquire range read lock blocked by DDL, check if tx has // already acquired other range read lock. If so we need to abort // tx since it might cause dead lock with range split. If this tx