Skip to content

Commit

Permalink
fix rca (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy authored Nov 19, 2024
1 parent 4f5a608 commit 01e76f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions handler/rca/scene/transaction_not_ending_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion handler/rca/scene/transaction_other_error_scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 01e76f9

Please sign in to comment.