Skip to content

Commit 14c8459

Browse files
committed
[fix](load) add null check for memtable after write failure reset
1 parent b8c6cde commit 14c8459

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

be/src/olap/memtable_writer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ Status MemTableWriter::flush_async() {
168168
return _cancel_status;
169169
}
170170

171+
// _mem_table may be null after write failure triggers reset
172+
if (_mem_table == nullptr) {
173+
return Status::OK();
174+
}
175+
171176
VLOG_NOTICE << "flush memtable to reduce mem consumption. memtable size: "
172177
<< PrettyPrinter::print_bytes(_mem_table->memory_usage())
173178
<< ", tablet: " << _req.tablet_id << ", load id: " << print_id(_req.load_id);

0 commit comments

Comments
 (0)