Applicable scenarios
This article is applicable to the scenario of DDL failure in OceanBase database, and is analyzed based on the internal table data and logs of OceanBase database.
Currently supports OceanBase database V4.2.1.0 and later versions. When using obdiag, you need to configure the cluster information in the ~/.obdiag/config.yml file according to your choice, or configure the cluster information through the --config option in the command.
Attention
Due to the timeliness of internal data, only current data is supported for analysis.
Currently only supports the scenario where the log stream has no owner.
Can import environment variables
Variable name |
Is it required |
Data type |
Default value |
Description |
|---|---|---|---|---|
| tenant_id | yes | string | "" | tenant ID |
| table_id | is | string | "" | the value of table_id |
| tablet_id | Yes | string | "" | The value of tablet_id |
Usage example
The execution example of configuring the analysis scenario and specifying tenants, tables and other related information is as follows:
obdiag rca run --scene=ddl_failure --env tenant_id=1001 --env table_id=1311 --env tablet_id=331
