diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 4d4538a8aa..c1c562fbff 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -2522,7 +2522,11 @@ Status Tablet::calc_delete_bitmap(RowsetId rowset_id, if (specified_rowset_ids != nullptr && !specified_rowset_ids->empty()) { auto st = lookup_row_key(key, specified_rowset_ids, &loc, dummy_version.first - 1); - CHECK(st.ok() || st.is() || st.is()); + bool expected_st = st.ok() || st.is() || st.is(); + DCHECK(expected_st) << "unexpected error status while lookup_row_key:" << st; + if (!expected_st) { + return st; + } if (st.is()) { ++row_id; continue; @@ -2565,7 +2569,8 @@ Status Tablet::_check_pk_in_pre_segments( const Slice& key, DeleteBitmapPtr delete_bitmap, RowLocation* loc) { for (auto it = pre_segments.rbegin(); it != pre_segments.rend(); ++it) { auto st = (*it)->lookup_row_key(key, loc); - CHECK(st.ok() || st.is() || st.is()); + DCHECK(st.ok() || st.is() || st.is()) + << "unexpected error status while lookup_row_key:" << st; if (st.is()) { continue; } else if (st.ok() && _schema->has_sequence_col() && diff --git a/be/src/olap/task/engine_publish_version_task.cpp b/be/src/olap/task/engine_publish_version_task.cpp index 5d3a65cf3c..8fd438354a 100644 --- a/be/src/olap/task/engine_publish_version_task.cpp +++ b/be/src/olap/task/engine_publish_version_task.cpp @@ -148,7 +148,7 @@ Status EnginePublishVersionTask::finish() { auto submit_st = StorageEngine::instance()->tablet_publish_txn_thread_pool()->submit_func( [=]() { tablet_publish_txn_ptr->handle(); }); - CHECK(submit_st.ok()); + CHECK(submit_st.ok()) << submit_st; } } // wait for all publish txn finished