Lchangliang opened a new pull request, #23246: URL: https://github.com/apache/doris/pull/23246
## Proposed changes Issue Number: close #xxx ``` core stack F0821 09:02:39.542575 2297202 segment_loader.h:136] Check failed: segments.empty() 16 *** Check failure stack trace: *** @ 0x55df1e91b50d google::LogMessage::Fail() @ 0x55df1e91da49 google::LogMessage::SendToLog() @ 0x55df1e91b076 google::LogMessage::Flush() @ 0x55df1e91e0b9 google::LogMessageFatal::~LogMessageFatal() @ 0x55defb649fed doris::SegmentCacheHandle::~SegmentCacheHandle() @ 0x55defb64e8b4 doris::BetaRowsetReader::~BetaRowsetReader() @ 0x55defb64e929 doris::BetaRowsetReader::~BetaRowsetReader() @ 0x55defb617caa std::_Sp_counted_ptr<>::_M_dispose() @ 0x55def9ae18d2 std::_Sp_counted_base<>::_M_release() @ 0x55def9ae160a std::__shared_count<>::~__shared_count() @ 0x55def9f81b7b std::__shared_ptr<>::~__shared_ptr() @ 0x55def9f76845 std::shared_ptr<>::~shared_ptr() @ 0x55def9f8c4b7 std::destroy_at<>() @ 0x55def9f8c487 std::_Destroy<>() @ 0x55def9f8c43b std::_Destroy_aux<>::__destroy<>() @ 0x55def9f8c3df std::_Destroy<>() @ 0x55def9f8c2a3 std::_Destroy<>() @ 0x55def9f707c1 std::vector<>::~vector() @ 0x55def9f529c8 doris::Compaction::~Compaction() @ 0x55defc047a87 doris::CumulativeCompaction::~CumulativeCompaction() @ 0x55defc047aa9 doris::CumulativeCompaction::~CumulativeCompaction() @ 0x55defbe5ad6a std::_Sp_counted_ptr<>::_M_dispose() @ 0x55def9ae18d2 std::_Sp_counted_base<>::_M_release() @ 0x55def9ae160a std::__shared_count<>::~__shared_count() @ 0x55defbe5a9cb std::__shared_ptr<>::~__shared_ptr() @ 0x55defc1508fb std::__shared_ptr<>::reset() @ 0x55defc0d9695 doris::Tablet::reset_compaction() @ 0x55def9d3b16d doris::StorageEngine::_submit_compaction_task()::$_0::operator()() @ 0x55def9d3af37 std::__invoke_impl<>() @ 0x55def9d3aea9 _ZSt10__invoke_rIvRZN5doris13StorageEngine23_submit_compaction_taskESt10shared_ptrINS0_6TabletEENS0_14CompactionTypeEbE3$_0JEENSt9enable_ifIX16is_invocable_r_vIT_T0_DpT1_EES9_E4typeEOSA_DpOSB_ @ 0x55def9d3ac2f std::_Function_handler<>::_M_invoke() @ 0x55def9c9efe7 std::function<>::operator()() ``` When do vertical compaction,the _segment_cache_handle in beta_rowset_reader will be inited many time so that the check will failed. <!--Describe your changes.--> ## Further comments If this is a relatively large or complex change, kick off the discussion at [d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org