Skip to content

Commit

Permalink
fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Apr 28, 2024
1 parent b85883b commit 2ffbeb8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions handler/checker/check_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion handler/checker/tasks/observer/cluster/deadlocks.yaml
Original file line number Diff line number Diff line change
@@ -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;'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
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:
- type: sql
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.'

0 comments on commit 2ffbeb8

Please sign in to comment.