Note
This parameter is available starting with V3.2.4.
Description
ob_query_switch_leader_retry_timeout specifies the maximum retry time for a failed query.
Privilege requirements
Query the parameter
You can use the
SHOW PARAMETERSstatement or query theGV$OB_PARAMETERSview to query this parameter in thesystenant and all user tenants.Modify the parameter
You can modify this parameter in the
systenant and user tenants.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 0ms, which indicates that the retry timeout check feature is disabled. |
| Value range | [0ms, +∞) |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
If the value of this parameter is set to n (n > 0), an error is returned to the client when the cumulative execution time of the retried query exceeds n.
Examples
Disable the retry timeout check feature for queries.
obclient> ALTER SYSTEM SET ob_query_switch_leader_retry_timeout = '0ms';