Scenarios
You can use the obdiag rca run command to analyze the ddl_failure scenario based on internal table data and logs of OceanBase Database.
OceanBase Database V4.2.1.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.
At present, obdiag can analyze only the absence of a leader in a log stream.
Supported environment variables
| Variable | Required? | Data type | Default value | Description |
|---|---|---|---|---|
| tenant_id | Yes | string | "" | The ID of the tenant. |
| table_id | Yes | string | "" | The ID of the table. |
| tablet_id | Yes | string | "" | The ID of the tablet. |
Examples
Specify the scenario and the IDs of the tenant, table, and tablet in the command.
obdiag rca run --scene=ddl_failure --input_parameters='{"tenant_id":" 1001","table_id":" 1311","tablet_id":" 331"}'