kaijchen commented on code in PR #42680: URL: https://github.com/apache/doris/pull/42680#discussion_r1836055939
########## be/src/olap/delta_writer_v2.cpp: ########## @@ -125,6 +125,9 @@ Status DeltaWriterV2::init() { context.partial_update_info = _partial_update_info; context.memtable_on_sink_support_index_v2 = true; + auto tablet = DORIS_TRY(ExecEnv::GetInstance()->storage_engine().get_tablet(_req.tablet_id)); Review Comment: DeltaWriterV2 is on the upstream BE, the tablet requested here can be on downstream BE. This causes the following problem: ``` I20241110 23:46:32.273124 5731 pipeline_fragment_context.cpp:170] PipelineFragmentContext::cancel|query_id=4334341c4795459e-ade78c01be07735d|fragment_id=0|reason=[INTERNAL_ERROR]failed to get tablet: 14168, reason: tablet does not exist. 172.20.50.97 0# doris::StorageEngine::get_tablet(long) at /home/zcp/repo_center/doris_master/doris/be/src/common/status.h:375 1# doris::DeltaWriterV2::init() at /home/zcp/repo_center/doris_master/doris/be/src/util/expected.hpp:1986 2# doris::DeltaWriterV2::write(doris::vectorized::Block const*, std::vector<unsigned int, std::allocator<unsigned int> > const&) at /home/zcp/repo_center/doris_master/doris/be/src/common/status.h:499 3# doris::vectorized::VTabletWriterV2::_write_memtable(std::shared_ptr<doris::vectorized::Block>, long, doris::vectorized::Rows const&) at /home/zcp/repo_center/doris_master/doris/be/src/common/status.h:388 4# doris::vectorized::VTabletWriterV2::write(doris::RuntimeState*, doris::vectorized::Block&) at /var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/shared_ptr_base.h:701 5# doris::vectorized::AsyncResultWriter::process_block(doris::RuntimeState*, doris::RuntimeProfile*) at /home/zcp/repo_center/doris_master/doris/be/src/common/status.h:499 6# std::_Function_handler<void (), doris::vectorized::AsyncResultWriter::start_writer(doris::RuntimeState*, doris::RuntimeProfile*)::$_0>::_M_invoke(std::_Any_data const&) at /var/local/ldb-toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/ext/atomicity.h:98 7# doris::ThreadPool::dispatch_thread() at /home/zcp/repo_center/doris_master/doris/be/src/util/threadpool.cpp:0 8# doris::Thread::supervise_thread(void*) at /var/local/ldb-toolchain/bin/../usr/include/pthread.h:562 9# ? 10# ? ``` -- 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