Note
This parameter is available starting with V3.2.4.
Description
The ob_query_switch_leader_retry_timeout parameter specifies the maximum retry time for a failed query.
Privilege requirements
Query the parameter
You can query this parameter by using the
SHOW PARAMETERSstatement or theGV$OB_PARAMETERSview in thesystenant and all user tenants.Modify the parameter
You can modify this parameter in the
systenant and all user tenants.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Time |
| Default value | 0 ms, which indicates that the retry timeout check feature is disabled. |
| Value range | [0 ms, +∞) |
| 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 cumulative execution time of a retried query exceeds the value of this parameter, an error is returned to the client.
Examples
Set the maximum retry time for a failed query to 0 ms.
obclient> ALTER SYSTEM SET ob_query_switch_leader_retry_timeout = '0ms';