kaijchen opened a new pull request, #48489:
URL: https://github.com/apache/doris/pull/48489

   ### What problem does this PR solve?
   
   Issue Number: DORIS-18927
   
   Related PR: #47860 and #47610
   
   Problem Summary:
   
   Fix coredump caused by MemTable nullptr.
   
   ```
   #7  0x00005654bf075bf2 in doris::MemTable::insert (this=0x0, 
input_block=0x7fd13b4a7fd0, row_idxs=...) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/olap/memtable.cpp:186
   #8  0x00005654bf0898e6 in doris::MemTableWriter::write (this=0x7fcdf6452c00, 
block=0x7fd13b4a7fd0, row_idxs=...) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/olap/memtable_writer.cpp:118
   #9  0x00005654c8e21dc1 in doris::DeltaWriterV2::write (this=0x7fcdf6500800, 
block=0x7fd13b4a7fd0, row_idxs=...) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/olap/delta_writer_v2.cpp:166
   #10 0x00005654c92832f5 in 
doris::vectorized::VTabletWriterV2::_write_memtable 
(this=this@entry=0x7fc995004400, block=..., tablet_id=1740267623826, rows=...) 
at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/vec/sink/writer/vtablet_writer_v2.cpp:525
   #11 0x00005654c9282acb in doris::vectorized::VTabletWriterV2::write 
(this=0x7fc995004400, state=<optimized out>, input_block=...) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/vec/sink/writer/vtablet_writer_v2.cpp:468
   #12 0x00005654c9228a30 in 
doris::vectorized::AsyncResultWriter::process_block (this=0x7fc995004400, 
state=0x7fcca8f3fc00, profile=<optimized out>) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/vec/sink/writer/async_result_writer.cpp:134
   #13 0x00005654c92292b9 in 
doris::vectorized::AsyncResultWriter::start_writer(doris::RuntimeState*, 
doris::RuntimeProfile*)::$_0::operator()() const (this=0x7fcd8c4248a0) at 
/home/zcp/repo_center/doris_branch-3.0/doris/be/src/vec/sink/writer/async_result_writer.cpp:93
   ```
   
   Because in memtable_on_sink_node mode, the failed DeltaWriter could still be 
written by other sinks.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


-- 
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

Reply via email to