Scenarios
You can use the obdiag rca run command to analyze the transaction_not_ending scenario based on internal table data and logs of OceanBase Database.
OceanBase Database V4.0.0.0 and later are supported for this feature. When you use obdiag commands, you must configure cluster information in the config.yml file stored in the ~/.obdiag directory or by specifying --config options in the commands.
Notice
Internal data is updated in real time. Therefore, obdiag only supports the analysis of current data.
Supported environment variables
| Variable | Required? | Data type | Default value | Description |
|---|---|---|---|---|
| phase | Yes | string | "" | The phase of the transaction. Valid values are UNSUBMITTED, COMMIT, and REPLAY. |
| tx_id | Yes | string | "" | The ID of the transaction. |
Examples
Specify the scenario and the phase and ID of the transaction in the command.
obdiag rca run --scene=transaction_not_ending --input_parameters='{"phase":" UNSUBMITTED","tx_id":" 0x1"}'