Skip to content

Commit 01e76f9

Browse files
authored
fix rca (oceanbase#560)
1 parent 4f5a608 commit 01e76f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

handler/rca/scene/transaction_not_ending_scene.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def execute(self):
6565
if self.tx_id is not None:
6666
self.record.add_record("tx_id is {0}".format(self.tx_id))
6767
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()
68+
self.record.add_record("transaction_data is {0}".format(transaction_datas))
6869
pass
6970
if self.phase is None:
7071
raise RCANotNeedExecuteException("phase is None. Please check --input_parameters")

handler/rca/scene/transaction_other_error_scene.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def execute(self):
7676
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")
7777
return
7878
if self.error_code == "-4030":
79-
self.record.add_record("error_code is {0}, error_msg_type is {1}")
79+
self.record.add_record("error_code is {0}, error_msg_type is {1}".format(self.error_code, self.error_msg_type))
8080
self.record.add_suggest("Tenant out of memory, please expand")
8181
return
8282
# gather log about EASY SLOW

0 commit comments

Comments
 (0)