Do not report ERROR when sample rate equals 100

This commit is contained in:
ZenoWang
2024-02-06 14:49:31 +00:00
committed by ob-robot
parent 1f1d5c08ae
commit c8ef409bf3
3710 changed files with 486984 additions and 3083329 deletions

View File

@ -421,7 +421,7 @@ int run_test() {
if(!config.is_test_write()) {
STORAGE_LOG(WARN, "no thread, cannot start write bench");
} else {
const int thread_no = config.get_total_partition_num();//one partition one write thread
const int thread_no = config.get_total_partition_num();//one partiton one write thread
MultiThreadWrite write(thread_no);
if(OB_FAIL(write.init(schema_service, &restore_schema, config))){
STORAGE_LOG(WARN, "fail to init query", K(ret));
@ -459,8 +459,8 @@ int run_test() {
if (OB_SUCC(ret)) {
//multi thread single get speed test
const int partition_num = config.get_total_partition_num();
const int thread_no = config.get_single_get_thread_count() * partition_num;
const int partiton_num = config.get_total_partition_num();
const int thread_no = config.get_single_get_thread_count() * partiton_num;
if(thread_no <= 0) {
STORAGE_LOG(WARN, "no thread, cannot start single get bench");
} else {
@ -490,8 +490,8 @@ int run_test() {
if (OB_SUCC(ret)) {
//multi thread multi get speed test
const int partition_num = config.get_total_partition_num();
int thread_no = config.get_multi_get_thread_count() * partition_num;
const int partiton_num = config.get_total_partition_num();
int thread_no = config.get_multi_get_thread_count() * partiton_num;
if(thread_no <= 0) {
STORAGE_LOG(WARN, "no thread, cannot start multi get bench");
} else {
@ -521,8 +521,8 @@ int run_test() {
if (OB_SUCC(ret)) {
//multi thread scan speed test
const int partition_num = config.get_total_partition_num();
int thread_no = config.get_scan_thread_count() * partition_num;
const int partiton_num = config.get_total_partition_num();
int thread_no = config.get_scan_thread_count() * partiton_num;
if(thread_no <= 0) {
STORAGE_LOG(WARN, "no thread, cannot start scan speed bench");
} else {

View File

@ -114,7 +114,7 @@ void MultiThreadSingleGet::run(obsys::CThread *thread, void *arg)
int ret = OB_SUCCESS;
ObStoragePerfRead read;
read.assign_read_cols(read_cols_);
// const int partition_num = config_.get_total_partition_num();
// const int partiton_num = config_.get_total_partition_num();
if(OB_FAIL(read.init(&config_, (int64_t)arg, &cache_suite_, restore_schema_,
schema_service_, data_.get_partition_storage(), &barrier_))){
STORAGE_LOG(WARN, "fail to init read", K(ret));
@ -136,7 +136,7 @@ void MultiThreadMultiGet::run(obsys::CThread *thread, void *arg)
int ret = OB_SUCCESS;
ObStoragePerfRead read;
// const int partition_num = config_.get_total_partition_num();
// const int partiton_num = config_.get_total_partition_num();
read.assign_read_cols(this->read_cols_);
if(OB_FAIL(read.init(&config_, (int64_t)arg, &cache_suite_, restore_schema_,
schema_service_, data_.get_partition_storage(), &barrier_))){
@ -158,7 +158,7 @@ void MultiThreadScan::run(obsys::CThread *thread, void *arg)
{
int ret = OB_SUCCESS;
//const int partition_num = config_.get_total_partition_num();
//const int partiton_num = config_.get_total_partition_num();
ObStoragePerfRead read;
read.assign_read_cols(this->read_cols_);

View File

@ -15,8 +15,8 @@ write_to_memtable_percent=0 #the ratio between size of data write to memtable wi
[read_parameter]
single_get_thread_count=0 #each partition how many thread to do single get test, 0 mean not test single get
multi_get_thread_count=0 #each partition how many thread to do multi get test, 0 mean not test multi get
scan_thread_count=1 #each partition how many thread for scan test, 0 mean not test scan
multi_get_thread_count=0 #each partiton how many thread to do multi get test, 0 mean not test multi get
scan_thread_count=1 #each partiton how many thread for scan test, 0 mean not test scan
total_single_row_count=1000 #every thread total get single row count
single_get_times=1000
total_multi_row_count=1000 #every thread total multi get row count

View File

@ -64,7 +64,7 @@ update t1 set c1 = 1 + 1 where c1 = 2;
#case 17 partition by key
#update t5 set c1 = 1 where c2 = 3 and c3 = 4;
#UPDATE __all_root_table SET sql_port = 51997, zone = 'test', partition_cnt = 1, role = 0, row_count = 0, data_size = 0, data_version = 1, data_checksum = 0, row_checksum = 0, column_checksum = '' WHERE tenant_id = 1 AND table_id = 2 AND partition_id = 0 AND ip = '127.0.0.1' AND port = 51951;
#UPDATE __all_root_table SET sql_port = 51997, zone = 'test', partition_cnt = 1, role = 0, row_count = 0, data_size = 0, data_version = 1, data_checksum = 0, row_checksum = 0, column_checksum = '' WHERE tenant_id = 1 AND table_id = 2 AND partition_id = 0 AND ip = '10.232.36.175' AND port = 51951;
#test for partition selection in dml_stmt
insert into t1 partition (p3, p0) values(3, 2);

View File

@ -71,7 +71,6 @@ class TestOptimizerUtils : public TestSqlUtils, public ::testing::Test {
virtual void init();
virtual void SetUp();
virtual void TearDown() {destroy();}
virtual void destroy() {}
// function members
int generate_logical_plan(ObResultSet &result,//ObIAllocator &allocator,
ObString &stmt,

View File

@ -120,7 +120,7 @@ ObIndexSkylineDim *ObSkylinePrunningTest::create_skyline_index_dim(
to_array(range_ids, range_cnt, rowkey_array);
dummy_const_column_info(interest_cnt, const_column_info);
t->add_interesting_order_dim(index_back, range_cnt > 0, filter_array, interest_array, const_column_info, allocator_);
t->add_query_range_dim(rowkey_array, allocator_, false);
t->add_query_range_dim(rowkey_array, allocator_);
return t;
}