MXS-2142: Set causal_reads_timeout default to 10
The causal_reads_timeout default value is too long when considering the behavioral changes that MXS-2141 introduced. With a 10 second default value, a result is returned to the client in a reasonable amount of time.
This commit is contained in:
@ -468,7 +468,7 @@ statements.
|
|||||||
INSERT INTO test.t1 (id) VALUES (1);
|
INSERT INTO test.t1 (id) VALUES (1);
|
||||||
SET @maxscale_secret_variable=(
|
SET @maxscale_secret_variable=(
|
||||||
SELECT CASE
|
SELECT CASE
|
||||||
WHEN MASTER_GTID_WAIT('0-3000-8', 120) = 0 THEN 1
|
WHEN MASTER_GTID_WAIT('0-3000-8', 10) = 0 THEN 1
|
||||||
ELSE (SELECT 1 FROM INFORMATION_SCHEMA.ENGINES)
|
ELSE (SELECT 1 FROM INFORMATION_SCHEMA.ENGINES)
|
||||||
END);
|
END);
|
||||||
SELECT * FROM test.t1 WHERE id = 1;
|
SELECT * FROM test.t1 WHERE id = 1;
|
||||||
@ -486,7 +486,7 @@ when the slave timed out.
|
|||||||
### `causal_reads_timeout`
|
### `causal_reads_timeout`
|
||||||
|
|
||||||
The timeout for the slave synchronization done by `causal_reads`. The
|
The timeout for the slave synchronization done by `causal_reads`. The
|
||||||
default value is 120 seconds.
|
default value is 10 seconds.
|
||||||
|
|
||||||
## Routing hints
|
## Routing hints
|
||||||
|
|
||||||
|
|||||||
@ -492,7 +492,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
|
|||||||
{"master_accept_reads", MXS_MODULE_PARAM_BOOL, "false" },
|
{"master_accept_reads", MXS_MODULE_PARAM_BOOL, "false" },
|
||||||
{"connection_keepalive", MXS_MODULE_PARAM_COUNT, "0" },
|
{"connection_keepalive", MXS_MODULE_PARAM_COUNT, "0" },
|
||||||
{"causal_reads", MXS_MODULE_PARAM_BOOL, "false" },
|
{"causal_reads", MXS_MODULE_PARAM_BOOL, "false" },
|
||||||
{"causal_reads_timeout", MXS_MODULE_PARAM_STRING, "120" },
|
{"causal_reads_timeout", MXS_MODULE_PARAM_STRING, "10" },
|
||||||
{"master_reconnection", MXS_MODULE_PARAM_BOOL, "false" },
|
{"master_reconnection", MXS_MODULE_PARAM_BOOL, "false" },
|
||||||
{"delayed_retry", MXS_MODULE_PARAM_BOOL, "false" },
|
{"delayed_retry", MXS_MODULE_PARAM_BOOL, "false" },
|
||||||
{"delayed_retry_timeout", MXS_MODULE_PARAM_COUNT, "10" },
|
{"delayed_retry_timeout", MXS_MODULE_PARAM_COUNT, "10" },
|
||||||
|
|||||||
Reference in New Issue
Block a user