This is an automated email from the ASF dual-hosted git repository. yiguolei 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 6d2c7c08def [fix](tablet meta) stale rowset is not loaded while BE start (#30077) 6d2c7c08def is described below commit 6d2c7c08defaaf702c24c6afb6e6257fb9f4ff8c Author: zhannngchen <48427519+zhannngc...@users.noreply.github.com> AuthorDate: Fri Jan 19 15:59:01 2024 +0800 [fix](tablet meta) stale rowset is not loaded while BE start (#30077) --- be/src/olap/tablet_meta.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/be/src/olap/tablet_meta.cpp b/be/src/olap/tablet_meta.cpp index f14622081d9..64bf7d4c198 100644 --- a/be/src/olap/tablet_meta.cpp +++ b/be/src/olap/tablet_meta.cpp @@ -550,6 +550,13 @@ void TabletMeta::init_from_pb(const TabletMetaPB& tablet_meta_pb) { _rs_metas.push_back(std::move(rs_meta)); } + // init _stale_rs_metas + for (auto& it : tablet_meta_pb.stale_rs_metas()) { + RowsetMetaSharedPtr rs_meta(new RowsetMeta()); + rs_meta->init_from_pb(it); + _stale_rs_metas.push_back(std::move(rs_meta)); + } + // For mow table, delete bitmap of stale rowsets has not been persisted. // When be restart, query should not read the stale rowset, otherwise duplicate keys // will be read out. Therefore, we don't add them to _stale_rs_meta for mow table. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org