Bug #66469 | RFE: innodb_txn_blocking_timeout | ||
---|---|---|---|
Submitted: | 20 Aug 2012 20:59 | Modified: | 21 Sep 2012 6:56 |
Reporter: | Kevin Benton | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Locking | Severity: | S4 (Feature request) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[20 Aug 2012 20:59]
Kevin Benton
[21 Aug 2012 6:56]
Valeriy Kravchuk
Why not to monitor blocking locks yourself as described in our manual, http://dev.mysql.com/doc/refman/5.5/en/innodb-information-schema-transactions.html#innodb-...? If you use 5.5 (or 5.1+InnoDB plugin, AFAIR) this is the way to identify sessions that blocks others and, having thread # you can kill it, or just kill current query, or whatever... Why we should introduce new feature/variable if there is a way to solve the problem using existing features?
[22 Aug 2012 22:40]
Ben Krug
I think this would be a good feature request, unless the code is too onerous or performance impact too high. Even if there is a (complicated) way to script it.
[22 Sep 2012 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[6 Nov 2012 23:01]
Ben Krug
This bug was closed due to "no feedback" when in actuality there was a response - entered by me but from an affected customer. Please re-open. Customer provides the following response: "because that requires someone to actively monitor those. On the other hand, if we have a timeout, the server can force a long-running transaction to rollback - a very desirable feature. This keeps things moving and prevents locks from being held open too long in cases where the DBA determines that it's more important to keep things moving than to allow a long-running lock to block other changes. " I would also add that, in addition, if it were possible to set this at a session or global level (so, session-level would mean, "don't let this session block others too long"), it would add functionality to the existing features. (If that is possible.)