From c3a520f50ae3667f500e7677d68dd28087c2e465 Mon Sep 17 00:00:00 2001 From: bobhan1 Date: Fri, 28 Jul 2023 10:31:54 +0800 Subject: [PATCH] only print warn msg if check correctness failed due to 2PC --- be/src/olap/tablet.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/be/src/olap/tablet.cpp b/be/src/olap/tablet.cpp index 0c2245d03a19480..3c23d96f6b50df8 100644 --- a/be/src/olap/tablet.cpp +++ b/be/src/olap/tablet.cpp @@ -3676,7 +3676,8 @@ Status Tablet::check_delete_bitmap_correctness(DeleteBitmapPtr delete_bitmap, in auto it = result.find(std::get<0>(key)); if (it == result.end()) { LOG(WARNING) << "can't find rowsetid when checking delete bitmap correctness"; - return Status::InternalError("check delete bitmap correctness failed"); + DCHECK(false); + return Status::OK(); } if (bitmap.contains(DeleteBitmap::ROWSET_SENTINEL_MARK)) { it->second = true; @@ -3688,11 +3689,13 @@ Status Tablet::check_delete_bitmap_correctness(DeleteBitmapPtr delete_bitmap, in "rowset with RowsetId:" << rowsetid << "version:" << get_rowset(rowsetid)->version().to_string() << "max_version:" << max_version; - return Status::InternalError("check delete bitmap correctness failed"); + DCHECK(false); + return Status::OK(); } } - LOG(INFO) << "[check_delete_bitmap_correctness][max_version:" << max_version << "]" - << "rowset size:" << rowsets.size(); + LOG(WARNING) << "[check_delete_bitmap_correctness][max_version:" << max_version << "]" + << "rowset size:" << rowsets.size(); + DCHECK(false); return Status::OK(); } } // namespace doris