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

@ -28,7 +28,7 @@ struct ObDDLChecksumItem
{
ObDDLChecksumItem()
: execution_id_(-1), tenant_id_(common::OB_INVALID_ID),
table_id_(common::OB_INVALID_ID), tablet_id_(common::OB_INVALID_ID), ddl_task_id_(0),
table_id_(common::OB_INVALID_ID), ddl_task_id_(0),
column_id_(common::OB_INVALID_ID), task_id_(common::OB_INVALID_ID), checksum_(0)
{}
~ObDDLChecksumItem() {};
@ -37,18 +37,16 @@ struct ObDDLChecksumItem
return 0 <= execution_id_
&& common::OB_INVALID_ID != tenant_id_
&& common::OB_INVALID_ID != table_id_
&& common::OB_INVALID_ID != tablet_id_
&& 0 < ddl_task_id_
&& common::OB_INVALID_ID != column_id_;
}
TO_STRING_KV(K_(execution_id), K_(tenant_id), K_(table_id), K_(tablet_id),
TO_STRING_KV(K_(execution_id), K_(tenant_id), K_(table_id),
K_(ddl_task_id), K_(column_id), K_(task_id), K_(checksum));
static const int64_t PX_SQC_ID_OFFSET = 48;
static const int64_t PX_TASK_ID_OFFSET = 32;
int64_t execution_id_;
uint64_t tenant_id_;
uint64_t table_id_;
uint64_t tablet_id_;
int64_t ddl_task_id_;
int64_t column_id_;
uint64_t task_id_;
@ -61,17 +59,13 @@ public:
static int update_checksum(
const uint64_t tenant_id,
const int64_t table_id,
const int64_t tablet_id,
const int64_t ddl_task_id,
const common::ObIArray<int64_t> &main_table_checksum,
const common::ObIArray<int64_t> &col_ids,
const int64_t schema_version,
const int64_t task_idx,
const uint64_t data_format_version,
common::ObMySQLProxy &sql_proxy);
static int update_checksum(
const uint64_t data_format_version,
const common::ObIArray<ObDDLChecksumItem> &checksum_items,
static int update_checksum(const common::ObIArray<ObDDLChecksumItem> &checksum_items,
common::ObMySQLProxy &sql_proxy);
static int get_table_column_checksum(
const uint64_t tenant_id,
@ -85,7 +79,7 @@ public:
const uint64_t execution_id,
const uint64_t table_id,
const int64_t ddl_task_id,
const ObIArray<ObTabletID> &tablet_ids,
ObIArray<ObTabletID> &tablet_ids,
ObMySQLProxy &sql_proxy,
common::hash::ObHashMap<uint64_t, bool> &tablet_checksum_map);
static int check_column_checksum(
@ -106,9 +100,7 @@ public:
common::ObMySQLProxy &sql_proxy,
const int64_t tablet_task_id = OB_INVALID_INDEX);
private:
static int fill_one_item(
const uint64_t data_format_version,
const ObDDLChecksumItem &item,
static int fill_one_item(const ObDDLChecksumItem &item,
share::ObDMLSqlSplicer &dml);
static int get_column_checksum(
const common::ObSqlString &sql,