Skip to content

Commit

Permalink
update scene about transaction and disconnection_scene
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Jun 6, 2024
1 parent 50c4c48 commit e297185
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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}'
1 change: 1 addition & 0 deletions handler/rca/scene/disconnection_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion handler/rca/scene/transaction_wait_timeout_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": "事务等待超时报错",
}

Expand Down

0 comments on commit e297185

Please sign in to comment.