Bug #56836 | GET_LOCK() timeout behaves differently on differing platforms | ||
---|---|---|---|
Submitted: | 17 Sep 2010 9:22 | Modified: | 29 Jul 2014 15:15 |
Reporter: | Mat Gadd | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S3 (Non-critical) |
Version: | 5.1.50, 5.5.37, 5.6.17 | OS: | Any (See description) |
Assigned to: | CPU Architecture: | Any | |
Tags: | locking, server |
[17 Sep 2010 9:22]
Mat Gadd
[17 Sep 2010 9:54]
Valeriy Kravchuk
Please, check if the behavior is still different with current version, 5.1.50.
[17 Sep 2010 13:06]
Mat Gadd
Confirmed under 5.1.50. mysql> SELECT 'Windows', @@version, GET_LOCK('test', -1); +---------+----------------------+----------------------+ | Windows | @@version | GET_LOCK('test', -1) | +---------+----------------------+----------------------+ | Windows | 5.1.50-community-log | 1 | +---------+----------------------+----------------------+ 1 row in set (0.00 sec) mysql> SELECT 'Windows', @@version, GET_LOCK('test', -1); +---------+----------------------+----------------------+ | Windows | @@version | GET_LOCK('test', -1) | +---------+----------------------+----------------------+ | Windows | 5.1.50-community-log | 1 | +---------+----------------------+----------------------+ 1 row in set (18.92 sec) mysql> SELECT 'FreeBSD', @@version, GET_LOCK('test', -1); +---------+-----------+----------------------+ | FreeBSD | @@version | GET_LOCK('test', -1) | +---------+-----------+----------------------+ | FreeBSD | 5.1.50 | 1 | +---------+-----------+----------------------+ 1 row in set (0.00 sec) mysql> SELECT 'FreeBSD', @@version, GET_LOCK('test', -1); +---------+-----------+----------------------+ | FreeBSD | @@version | GET_LOCK('test', -1) | +---------+-----------+----------------------+ | FreeBSD | 5.1.50 | 0 | +---------+-----------+----------------------+ 1 row in set (0.00 sec)
[17 Sep 2010 14:45]
Mat Gadd
Changed title, as it's now been confirmed on 5.1.50.
[14 Mar 2014 19:19]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior on FreeBSD with version 5.5 and up. Please upgrade.
[14 Mar 2014 19:22]
Sveta Smirnova
Actually current behavior when timeout is negative is confusing and you are correct that this should be at least documented.
[29 Jul 2014 15:15]
Paul DuBois
Noted in 5.5.8 changelog. Previously, a negative timeout value to GET_LOCK() was interpreted as infinite timeout, but only on Windows. This is now the case on all platforms.