This is an automated email from the ASF dual-hosted git repository. zhangchen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 8b27d42b9b [bugfix](MOW) fix core in set_txn_related_delete_bitmap (#18956) 8b27d42b9b is described below commit 8b27d42b9b5b4922c8f7a2daac3d7faa6a69a0d4 Author: yixiutt <102007456+yixi...@users.noreply.github.com> AuthorDate: Tue Apr 25 10:57:26 2023 +0800 [bugfix](MOW) fix core in set_txn_related_delete_bitmap (#18956) Fe will clear transaction info when transaction timeout, but calc delete bitmap related logic in DeltaWriter::close_wait will continue. In set_txn_related_delete_bitmap, we return directly in such case. --- be/src/olap/txn_manager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/be/src/olap/txn_manager.cpp b/be/src/olap/txn_manager.cpp index cfb1b676f0..14f7451095 100644 --- a/be/src/olap/txn_manager.cpp +++ b/be/src/olap/txn_manager.cpp @@ -176,6 +176,11 @@ void TxnManager::set_txn_related_delete_bitmap( txn_tablet_map_t& txn_tablet_map = _get_txn_tablet_map(transaction_id); auto it = txn_tablet_map.find(key); DCHECK(it != txn_tablet_map.end()); + if (it == txn_tablet_map.end()) { + LOG(WARNING) << "transaction_id: " << transaction_id + << " partition_id: " << partition_id << " may be cleared"; + return; + } auto load_itr = it->second.find(tablet_info); DCHECK(load_itr != it->second.end()); TabletTxnInfo& load_info = load_itr->second; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org