This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d34282cfff disable check segment when build rowset meta by default 
(#30857)
1d34282cfff is described below

commit 1d34282cfff8874d657c8a1891a83c0850cd3556
Author: HHoflittlefish777 <[email protected]>
AuthorDate: Mon Feb 5 21:55:10 2024 +0800

    disable check segment when build rowset meta by default (#30857)
---
 be/src/common/config.cpp                  | 2 ++
 be/src/common/config.h                    | 2 ++
 be/src/olap/rowset/beta_rowset_writer.cpp | 2 +-
 3 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 1d4ba6f9c3f..e2de5ce1e53 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1176,6 +1176,8 @@ DEFINE_mDouble(high_disk_avail_level_diff_usages, "0.15");
 // create tablet in partition random robin idx lru size, default 10000
 DEFINE_Int32(partition_disk_index_lru_size, "10000");
 
+DEFINE_mBool(check_segment_when_build_rowset_meta, "false");
+
 // clang-format off
 #ifdef BE_TEST
 // test s3
diff --git a/be/src/common/config.h b/be/src/common/config.h
index ff703680336..96882e235d0 100644
--- a/be/src/common/config.h
+++ b/be/src/common/config.h
@@ -1252,6 +1252,8 @@ DECLARE_mDouble(high_disk_avail_level_diff_usages);
 // create tablet in partition random robin idx lru size, default 10000
 DECLARE_Int32(partition_disk_index_lru_size);
 
+DECLARE_mBool(check_segment_when_build_rowset_meta);
+
 #ifdef BE_TEST
 // test s3
 DECLARE_String(test_s3_resource);
diff --git a/be/src/olap/rowset/beta_rowset_writer.cpp 
b/be/src/olap/rowset/beta_rowset_writer.cpp
index 5bd8ced40f5..b11a236ebf2 100644
--- a/be/src/olap/rowset/beta_rowset_writer.cpp
+++ b/be/src/olap/rowset/beta_rowset_writer.cpp
@@ -644,7 +644,7 @@ Status BaseBetaRowsetWriter::_build_rowset_meta(RowsetMeta* 
rowset_meta, bool ch
     }
 
     auto segment_num = _num_seg();
-    if (check_segment_num) {
+    if (check_segment_num && config::check_segment_when_build_rowset_meta) {
         auto segments_encoded_key_bounds_size = 
segments_encoded_key_bounds.size();
         if (segments_encoded_key_bounds_size != segment_num) {
             return Status::InternalError(


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to