This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push: new 5f8e948 [fix] BE crash when reporting tablet (#8453) 5f8e948 is described below commit 5f8e94812553c9a60dee54c9d5a57a3f9a76079c Author: Mingyu Chen <morningman....@gmail.com> AuthorDate: Sat Mar 12 23:12:52 2022 +0800 [fix] BE crash when reporting tablet (#8453) this bug was introduced from #8209 --- be/src/olap/tablet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 662d34b..8309745 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -833,7 +833,8 @@ void Tablet::_max_continuous_version_from_beginning_unlocked(Version* version, V max_continuous_version = existing_versions[i]; } *version = max_continuous_version; - if (max_version != nullptr) { + // tablet may not has rowset, eg, tablet has just been clear for restore. + if (max_version != nullptr && !existing_versions.empty()) { *max_version = existing_versions.back(); } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org