From 7a2f1d44f6248f55c3aeace1ae2479e4dbf29e31 Mon Sep 17 00:00:00 2001 From: Chen Zhang Date: Fri, 22 Dec 2023 20:31:44 +0800 Subject: [PATCH] [fix](chore) update dcheck to avoid core during stress test --- be/src/olap/tablet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 47fd726b375ecd..a5f34633d79240 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -3016,7 +3016,10 @@ Status Tablet::calc_segment_delete_bitmap(RowsetSharedPtr rowset, auto st = lookup_row_key(key, true, specified_rowsets, &loc, dummy_version.first - 1, segment_caches, &rowset_find); bool expected_st = st.ok() || st.is() || st.is(); - DCHECK(expected_st) << "unexpected error status while lookup_row_key:" << st; + // It's a defensive DCHECK, we need to exclude some common errors to avoid core-dump + // while stress test + DCHECK(expected_st || st.is()) + << "unexpected error status while lookup_row_key:" << st; if (!expected_st) { return st; }