[MDEV-5101] INFORMATION_SCHEMA.PROCESSLIST reports an incorrect value for Time for connecting threads Created: 2013-10-04 Updated: 2013-11-12 Resolved: 2013-11-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4, 5.5.33a |
| Fix Version/s: | 5.5.34, 10.0.6 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jean Weisbuch | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | information_schema, processlist | ||
| Environment: |
Debian Wheezy amd64 |
||
| Issue Links: |
|
||||||||||||
| Description |
|
In the INFORMATION_SCHEMA.PROCESSLIST table, the Time column reports the actual UNIX timestamp for new connections instead of a NULL value like the SHOW PROCESSLIST (or a duration) like it should. Examples from a server having an important number or connections/seconds :
We can see that the Time column on I_S (as well as the Time_MS column) always reports the actual timestamp and not a duration (or a NULL value like the SHOW PROCESSLIST does) as it should. ps: MySQL 5.5.30 and 5.5.28 doesnt seems to have this bug (they return 0 as the Time value on I_S.PROCESSLIST for these connecting threads). |
| Comments |
| Comment by Elena Stepanova [ 2013-10-07 ] |
|
I can easily reproduce it with a concurrent test, but haven't found an easy way to create a deterministic test case with sync points because the scenario requires a new connection where I can't set debug_sync. === modified file 'sql/sql_show.cc'
Earlier if tmp->start_time was 0 (which happens to be when a new connection is connecting) we would set utime to 0 as well. Now we don't check for that anymore, so utime ends up being set to unow. Please let me know if you need the concurrent test. |