From 0512721327caa49c77c9533b03fe4d19e63782d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Mon, 22 Dec 2025 20:12:53 +0100 Subject: [PATCH 1/2] Increase max value for innodb_lock_wait_timeout --- system-variables.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 5c091a59da694..7ff9f0c087409 100644 --- a/system-variables.md +++ b/system-variables.md @@ -586,7 +586,7 @@ This variable is an alias for [`last_insert_id`](#last_insert_id). - Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No - Type: Integer - Default value: `50` -- Range: `[1, 3600]` +- Range: `[1, 1073741824]` - Unit: Seconds - The lock wait timeout for pessimistic transactions (default). From 6337fa4929673737ff728669b200ee8fd2374b30 Mon Sep 17 00:00:00 2001 From: houfaxin Date: Tue, 23 Dec 2025 09:32:50 +0800 Subject: [PATCH 2/2] Update tikv-configuration-file.md --- tikv-configuration-file.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tikv-configuration-file.md b/tikv-configuration-file.md index 84a578de8c166..26d1f7e6e79a3 100644 --- a/tikv-configuration-file.md +++ b/tikv-configuration-file.md @@ -2485,7 +2485,7 @@ For pessimistic transaction usage, refer to [TiDB Pessimistic Transaction Mode]( ### `wait-for-lock-timeout` -- The longest time that a pessimistic transaction in TiKV waits for other transactions to release the lock. If the time is out, an error is returned to TiDB, and TiDB retries to add a lock. The lock wait timeout is set by `innodb_lock_wait_timeout`. +- The longest time that a pessimistic transaction in TiKV waits for other transactions to release the lock. If the time is out, an error is returned to TiDB, and TiDB retries to add a lock. The lock wait timeout is set by [`innodb_lock_wait_timeout`](/system-variables.md#innodb_lock_wait_timeout). - Default value: `"1s"` - Minimum value: `"1ms"`