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 7ead1706258 [Fix](merge-on-write) Fix UBSan error cause by member call
on null pointer (#39066)
7ead1706258 is described below
commit 7ead170625829aa7686e6e2860e9cb0ab0d1f5bc
Author: bobhan1 <[email protected]>
AuthorDate: Thu Aug 8 16:59:43 2024 +0800
[Fix](merge-on-write) Fix UBSan error cause by member call on null pointer
(#39066)
fix member call on null pointer in
https://github.com/apache/doris/pull/38331
---
be/src/olap/txn_manager.cpp | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/be/src/olap/txn_manager.cpp b/be/src/olap/txn_manager.cpp
index 2d715810416..1dd2d52f33b 100644
--- a/be/src/olap/txn_manager.cpp
+++ b/be/src/olap/txn_manager.cpp
@@ -747,8 +747,13 @@ void
TxnManager::force_rollback_tablet_related_txns(OlapMeta* meta, TTabletId ta
}
}
}
- static_cast<void>(
- RowsetMetaManager::remove_tablet_related_partial_update_info(meta,
tablet_id));
+ if (meta != nullptr) {
+ Status st =
RowsetMetaManager::remove_tablet_related_partial_update_info(meta, tablet_id);
+ if (!st.ok()) {
+ LOG_WARNING("failed to partial update info, tablet_id={}, err={}",
tablet_id,
+ st.to_string());
+ }
+ }
}
void TxnManager::get_txn_related_tablets(const TTransactionId transaction_id,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]