[MDEV-7775] Wrong error message (Unknown error) when idle sessions are killed after wait_timeout Created: 2015-03-13 Updated: 2016-04-26 Resolved: 2016-04-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.50, 10.0.25, 10.1.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Joffrey MICHAIE (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | verified | ||
| Sprint: | 10.0.25 |
| Description |
|
Hi, my server has wait_timeout set to 28800 seconds (8 hours). Looking at my sessions idling ...
Then in the log, I can see:
I think the error message should be more explicit, such as "connection closed due to wait_timeout limit reached". To reproduce, start mariadb server, with --log_warnings=2, set wait_timeout, and let application session idle until the timeout, then look at error log. Thanks, |
| Comments |
| Comment by Elena Stepanova [ 2015-03-16 ] | ||||
|
It is actually a regression. We used to have a proper message in 5.1-5.3, but lost it in 5.5 and higher. MySQL 5.5 produces the correct message.
| ||||
| Comment by Peter (Stig) Edwards [ 2016-03-04 ] | ||||
|
I think this commit introduced the change in behaviour:
could be:
Thanks. | ||||
| Comment by Sergei Golubchik [ 2016-04-22 ] | ||||
|
thatsafunnyname, thanks for the fix! | ||||
| Comment by Peter (Stig) Edwards [ 2016-04-22 ] | ||||
|
Thanks for fixing and adding the test. |