Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] fix load channel crash when add chunk (StarRocks#25248)
When load channel not open yet, the `_row_desc` will be null, avoid dereference it when `add_chunk`. This will happen when rpc packets arrive not in order. crash stack: ``` (gdb) bt #0 0x00000000057cd3e2 in starrocks::serde::build_protobuf_chunk_meta(starrocks::RowDescriptor const&, starrocks::ChunkPB const&) () #1 0x0000000004d1ee07 in starrocks::LoadChannel::_build_chunk_meta(starrocks::ChunkPB const&) () #2 0x0000000004d21816 in starrocks::LoadChannel::add_chunk(starrocks::PTabletWriterAddChunkRequest const&, starrocks::PTabletWriterAddBatchResult*) () #3 0x0000000004d1abb2 in starrocks::LoadChannelMgr::add_chunk(starrocks::PTabletWriterAddChunkRequest const&, starrocks::PTabletWriterAddBatchResult*) () StarRocks#4 0x0000000004dd0835 in starrocks::BackendInternalServiceImpldoris::PBackendService::tablet_writer_add_chunk(google::protobuf::RpcController*, starrocks::PTabletWriterAddChunkRequest const*, starrocks::PTabletWriterAddBatchResult*, google::protobuf::Closure*) () ```
- Loading branch information