From 2ffbeb8178089f3fb6e5688b3be429b8b3dcc137 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Sun, 28 Apr 2024 20:15:51 +0800 Subject: [PATCH] fix case --- handler/checker/check_handler.py | 4 +--- handler/checker/tasks/observer/cluster/deadlocks.yaml | 1 - .../observer/table/information_schema_tables_two_data.yaml | 3 +-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/handler/checker/check_handler.py b/handler/checker/check_handler.py index 81f46cc9..f225832c 100644 --- a/handler/checker/check_handler.py +++ b/handler/checker/check_handler.py @@ -225,7 +225,6 @@ def execute_one(self, task_name): raise CheckException("execute_one Exception : {0}".format(e)) def execute(self): - start_time = time.time() try: self.stdio.verbose( "execute_all_tasks. the number of tasks is {0} ,tasks is {1}".format(len(self.tasks.keys()), @@ -242,8 +241,7 @@ def execute(self): self.stdio.error("Report error :{0}".format(e)) except Exception as e: self.stdio.error("Internal error :{0}".format(e)) - end_time = time.time() - print("Total cost time is {0} s".format((end_time - start_time))) + class checkOBConnectorPool: def __init__(self,context, max_size, cluster): self.max_size = max_size diff --git a/handler/checker/tasks/observer/cluster/deadlocks.yaml b/handler/checker/tasks/observer/cluster/deadlocks.yaml index 690d0227..e05c7034 100644 --- a/handler/checker/tasks/observer/cluster/deadlocks.yaml +++ b/handler/checker/tasks/observer/cluster/deadlocks.yaml @@ -1,7 +1,6 @@ info: "Check whether there is a deadlock." task: - version: "[4.0.0.0,*]" - execute_type: "one_node" steps: - type: sql sql: 'select count(0) from oceanbase.DBA_OB_DEADLOCK_EVENT_HISTORY;' diff --git a/handler/checker/tasks/observer/table/information_schema_tables_two_data.yaml b/handler/checker/tasks/observer/table/information_schema_tables_two_data.yaml index f6bce02c..76d450b7 100644 --- a/handler/checker/tasks/observer/table/information_schema_tables_two_data.yaml +++ b/handler/checker/tasks/observer/table/information_schema_tables_two_data.yaml @@ -1,4 +1,4 @@ -info: 'A table found two records in information_schema.tables. KBA-50000056' +info: 'A table found two records in information_schema.tables.' task: - version: "[4.0.0.0,*]" steps: @@ -6,7 +6,6 @@ task: sql: 'select count(0) from oceanbase.__all_virtual_table_stat where table_id = partition_id and (tenant_id,table_id) in (select tenant_id, table_id from oceanbase.__all_virtual_table where part_level != 0);' result: set_value: err_table_count - # report_type: warning verify_type: equal verify: 0 err_msg: 'Find have table found two records in information_schema.tables. the number of err_table_count is : #{err_table_count}. Please get more info by "select * from oceanbase.__all_virtual_table_stat where table_id = partition_id and (tenant_id,table_id) in (select tenant_id, table_id from oceanbase.__all_virtual_table where part_level != 0);". And you can by "delete from __all_table_stat where table_id=partition_id and table_id=${partition table table_id};" and "delete from __all_column_stat where table_id=partition_id and table_id=${partition table table_id};" to fix it.'