From 01e76f932d8432aa12b04b1ede75566f74a2759d Mon Sep 17 00:00:00 2001 From: xuyan wang <35394786+wayyoungboy@users.noreply.github.com> Date: Tue, 19 Nov 2024 09:40:33 +0800 Subject: [PATCH] fix rca (#560) --- handler/rca/scene/transaction_not_ending_scene.py | 1 + handler/rca/scene/transaction_other_error_scene.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/rca/scene/transaction_not_ending_scene.py b/handler/rca/scene/transaction_not_ending_scene.py index 25a17639..23a83a04 100644 --- a/handler/rca/scene/transaction_not_ending_scene.py +++ b/handler/rca/scene/transaction_not_ending_scene.py @@ -65,6 +65,7 @@ def execute(self): if self.tx_id is not None: self.record.add_record("tx_id is {0}".format(self.tx_id)) transaction_datas = self.ob_connector.execute_sql_return_cursor_dictionary("select * from oceanbase.__all_virtual_trans_stat where tx_id!='{0}';".format(self.tx_id)).fetchall() + self.record.add_record("transaction_data is {0}".format(transaction_datas)) pass if self.phase is None: raise RCANotNeedExecuteException("phase is None. Please check --input_parameters") diff --git a/handler/rca/scene/transaction_other_error_scene.py b/handler/rca/scene/transaction_other_error_scene.py index cdf37872..769ac2e1 100644 --- a/handler/rca/scene/transaction_other_error_scene.py +++ b/handler/rca/scene/transaction_other_error_scene.py @@ -76,7 +76,7 @@ def execute(self): self.record.add_suggest("It is highly likely that there is an issue with the RPC and we need to use 'tsar' to check the network conditions in the environment at that time. And send it to Oceanbase Community") return if self.error_code == "-4030": - self.record.add_record("error_code is {0}, error_msg_type is {1}") + self.record.add_record("error_code is {0}, error_msg_type is {1}".format(self.error_code, self.error_msg_type)) self.record.add_suggest("Tenant out of memory, please expand") return # gather log about EASY SLOW