From e297185d1e0a6efeaa7aad0cc3e63247dcd7f5e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A0=E7=A3=8A?= Date: Thu, 6 Jun 2024 17:34:42 +0800 Subject: [PATCH] update scene about transaction and disconnection_scene --- .../observer/column_storage/tenant_parameters.yaml | 11 +++++++++++ handler/rca/scene/disconnection_scene.py | 1 + handler/rca/scene/transaction_wait_timeout_scene.py | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 handler/checker/tasks/observer/column_storage/tenant_parameters.yaml diff --git a/handler/checker/tasks/observer/column_storage/tenant_parameters.yaml b/handler/checker/tasks/observer/column_storage/tenant_parameters.yaml new file mode 100644 index 00000000..f4c80476 --- /dev/null +++ b/handler/checker/tasks/observer/column_storage/tenant_parameters.yaml @@ -0,0 +1,11 @@ +info: 'Check whether there is any observer have CPU oversold.' +task: + - version: "[4.3.1.0,*]" + steps: + - type: sql + sql: "SELECT GROUP_CONCAT(CONCAT(SVR_IP, ':', SVR_PORT) SEPARATOR ', ') AS IP_PORT_COMBINATIONSFROM from oceanbase.GV$OB_SERVERS WHERE CPU_ASSIGNED > CPU_CAPACITY;" + result: + set_value: CPU_oversold + verify: '[ -z "$CPU_oversold" ]' + report_type: warning + err_msg: 'Some observers have CPU oversold. There are #{CPU_oversold}' diff --git a/handler/rca/scene/disconnection_scene.py b/handler/rca/scene/disconnection_scene.py index f0b97733..c2c1e355 100644 --- a/handler/rca/scene/disconnection_scene.py +++ b/handler/rca/scene/disconnection_scene.py @@ -167,6 +167,7 @@ def __init__(self, context, log, record): self.gather_log.grep("{0}".format(observer_trace_id)) self.gather_log.execute(save_path=work_path_observer_trace_log) self.record.add_record("observer_trace_id is {0}, save observer's log on '{1}'".format(observer_trace_id, work_path_observer_trace_log)) + # todo: for error_code=4410 # else: # # for 4410 # trace_type = None diff --git a/handler/rca/scene/transaction_wait_timeout_scene.py b/handler/rca/scene/transaction_wait_timeout_scene.py index cd877c94..c1cda245 100644 --- a/handler/rca/scene/transaction_wait_timeout_scene.py +++ b/handler/rca/scene/transaction_wait_timeout_scene.py @@ -158,7 +158,7 @@ def execute(self): def get_scene_info(self): return { "name": "transaction_wait_timeout", - "info_en": "transaction wait timeout error, error_code like -4012", + "info_en": "transaction wait timeout error, error_msg like 'Shared lock conflict' or 'Lock wait timeout exceeded'", "info_cn": "事务等待超时报错", }