Overview
ob_query_switch_leader_retry_timeout specifies the maximum retry time for failed queries.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Time |
| Default Value | 0ms: Disable the retry timeout check feature. |
| Value range | [0ms, +∞) |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
The value of this parameter must be a positive integer n. When the cumulative execution time of retried queries exceeds n, the OBServer node throws an error to the client.
Configuration example
Sets the query retry timeout check to off.
obclient> ALTER SYSTEM SET ob_query_switch_leader_retry_timeout = '0ms';