Bug #117707 | FLUSH TABLES WITH READ LOCK timeout, but doesn't release the locks | ||
---|---|---|---|
Submitted: | 14 Mar 9:58 | Modified: | 20 Mar 12:26 |
Reporter: | Tsubasa Tanaka (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S2 (Serious) |
Version: | 8.0.41, 8.4.4, 9.2.0 | OS: | Oracle Linux (8.10) |
Assigned to: | CPU Architecture: | x86 |
[14 Mar 9:58]
Tsubasa Tanaka
[14 Mar 12:29]
MySQL Verification Team
Hello tanaka-San, Thank you for the report and feedback. regards, Umesh
[19 Mar 14:49]
Jean-François Gagné
A complement on this bug: when the connection that did the FTWRL ends, the locks are released (at least for 8.0.30, 8.0.41, 8.4.4 and 9.2.0). I am not implying the bug is not serious, just that its impact is not as bad for clients disconnecting after FTWRL times-out (which btw, is a nice workaround for this bug).
[20 Mar 12:24]
Tsubasa Tanaka
Thank you, I confirmed global read lock removed when FTWRL connection ends. By the way, even if FTWRL connection had gone, queries blocked by "waiting for table flush" are still there. Workaround to resolve those queries is `KILL the connection which had blocked FTWRL` . (In my example, KILL 9 statement) I hope this workaround reaches someone who faced this situation.
[20 Mar 12:26]
Tsubasa Tanaka
But you're right, flush-status is not lock. Is there any better expression?