| Bug #33507 | Event scheduler creates more threads than max_connections = user lockout | ||
|---|---|---|---|
| Submitted: | 25 Dec 2007 12:01 | Modified: | 26 Mar 19:01 |
| Reporter: | Philip Stoev | ||
| Status: | Closed | ||
| Category: | Server | Severity: | S2 (Serious) |
| Version: | 6.0.4, 5.1.23 | OS: | Any |
| Assigned to: | Alexander Nozdrin | Target Version: | 5.1+ |
| Triage: | D1 (Critical) / R2 (Low) / E2 (Low) | ||
[25 Dec 2007 12:01]
Philip Stoev
[25 Dec 2007 13:29]
Philip Stoev
This bug be a major problem for servers running long-lived events very frequently. Any event can be long-lived due to a deadlock or general server slowliness. As more event incarnations are spawned and join the deadlock game and add to server load, the smaller the chances that future event incarnations will complete before new ones are spawned. The ON COMPLETION PRESERVE clause is not required.
[25 Dec 2007 17:54]
Giuseppe Maxia
Verified as described also in version 5.1.23.
[12 Mar 15:44]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/43851 ChangeSet@1.2561, 2008-03-12 17:44:40+03:00, anozdrin@quad. +5 -0 Fix for Bug#33507: Event scheduler creates more threads than max_connections -- which results in user lockout. The problem was that the variable thread_count that contains the number of active threads was interpreted as a number of active connections. The fix is to introduce a new counter for active connections.
[12 Mar 15:51]
Alexander Nozdrin
Pushed into 5.1-runtime.
[26 Mar 15:13]
Bugs System
Pushed into 5.1.24-rc
[26 Mar 19:01]
Paul DuBois
Noted in 5.1.24 changelog. Threads created by the event scheduler were incorrectly counted against the max_connections thread limit, which could lead to client lockout.
[27 Mar 18:51]
Bugs System
Pushed into 6.0.5-alpha
[2 Apr 18:11]
Jon Stephens
Fix also noted in the 5.1.23-ndb-6.3.11 and 6.0.5 changelogs.
