| Bug #42384 | thread_handling = pool-of-threads, wrong handling of max_questions user limit | ||
|---|---|---|---|
| Submitted: | 27 Jan 18:48 | Modified: | 3 Apr 4:49 |
| Reporter: | Matthias Leich | ||
| Status: | Closed | ||
| Category: | Server | Severity: | S2 (Serious) |
| Version: | 6.0 | OS: | Any |
| Assigned to: | Alexander Nozdrin | Target Version: | 6.0-rc |
| Triage: | Triaged: D3 (Medium) | ||
[27 Jan 18:48]
Matthias Leich
[27 Jan 18:58]
Matthias Leich
testscript
Attachment: ml033.test (application/octet-stream, text), 5.51 KiB.
[27 Jan 18:59]
Matthias Leich
expected results
Attachment: ml033.result (application/octet-stream, text), 4.84 KiB.
[27 Jan 19:03]
Matthias Leich
Dear bug fixer, the first ~ 20 lines of my bug replay testscript are the important ones. The remaining stuff are just experiments.
[26 Mar 10:04]
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/70484 2752 Alexander Nozdrin 2009-03-26 A patch for Bug#42384 (thread_handling = pool-of-threads, wrong handling of max_questions user limit). The problem was that in case of pool-of-threads a thd object was not properly initialized, i.e. thr_create_time and start_utime were not set. So, time_out_user_resource_limits(), that is essential for handling user limits, was not able to work properly. The fix is to initialize forgotten attributes properly.
[26 Mar 10:08]
Alexander Nozdrin
Pushed into 6.0-runtime.
[31 Mar 16:22]
Bugs System
Pushed into 6.0.11-alpha (revid:davi.arnaut@sun.com-20090331130058-yonsevjt1833wt5o) (version source revid:alik@sun.com-20090326090425-cein0jhoqmd54ql9) (merge vers: 6.0.11-alpha) (pib:6)
[3 Apr 4:49]
Paul DuBois
Noted in 6.0.11 changelog. If the server was started with --thread_handling=pool-of-threads, the MAX_QUERIES_PER_HOUR user resource limit.
