From 13513097d645d38b377a97aa4631e4a4e4a2b6c9 Mon Sep 17 00:00:00 2001 From: deardeng Date: Wed, 5 Aug 2026 10:37:08 +0800 Subject: [PATCH] [fix](storage) Reject prepare txn on shutdown tablet (#66448) pick from https://github.com/apache/doris/pull/66448 Call the Tablet-aware transaction preparation overload while migration and push locks are held, restoring the shutdown-tablet guard and preventing stale tablet transaction entries. --- be/src/olap/tablet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index a01d78e3605f52..0668d31adbf23b 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -2939,8 +2939,7 @@ Status Tablet::prepare_txn(TPartitionId partition_id, TTransactionId transaction } std::lock_guard push_lock(get_push_lock()); - return _engine.txn_manager()->prepare_txn(partition_id, transaction_id, tablet_id(), - tablet_uid(), load_id, ingest); + return _engine.txn_manager()->prepare_txn(partition_id, *this, transaction_id, load_id, ingest); } #include "common/compile_check_end.h"