[MDEV-4578] information_schema.processlist reports incorrect value for Time (2147483647) Created: 2013-05-24 Updated: 2013-11-11 Resolved: 2013-06-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.2, 5.5.31, 5.1.67, 5.2.14, 5.3.12 |
| Fix Version/s: | 10.0.4, 5.5.32 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jonathan Nicol | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian Squeeze (6.0.6) x86_64, Linux 3.2.40. Compiled locally. This is 5.5.28-MariaDB-log. |
||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
In the information_schema.processlist table, the Time column frequently reports an incorrect value of 2147483647. "show processlist" is not similarly affected. From my testing, I'm reasonably sure these queries are all less than 1 second old. I do see plenty of processes reported with an accurate Time value (>=1). Examples (with some obfuscation):
|
| Comments |
| Comment by Elena Stepanova [ 2013-05-24 ] | |||||||||||||
|
Hi Jonathan, It's not quite clear from the description, do you ever see processes with accurate time less than 1 sec, or are all of those always damaged? Thanks. | |||||||||||||
| Comment by Jonathan Nicol [ 2013-05-25 ] | |||||||||||||
|
I see processes with times of 0, 1, 2, etc. I'm just making an educated guess based on the specific affected queries that they are less than 1 second old. | |||||||||||||
| Comment by Jonathan Nicol [ 2013-05-25 ] | |||||||||||||
|
to be clear, here's an example of an accurate one:
| |||||||||||||
| Comment by Elena Stepanova [ 2013-05-26 ] | |||||||||||||
|
Hi Jonathan, Thank you. I'm able to repeat the problem with a concurrent test, I'll see if I can make it more deterministic. | |||||||||||||
| Comment by Elena Stepanova [ 2013-05-27 ] | |||||||||||||
source include/have_debug_sync.inc; SET DEBUG_SYNC = 'dispatch_command_before_set_time WAIT_FOR do_set_time'; connect (con1,localhost,root,,); SET DEBUG_SYNC = 'fill_schema_processlist_after_unow SIGNAL do_set_time WAIT_FOR fill_schema_proceed'; connection default; connection con1;
SET DEBUG_SYNC = 'dispatch_command_before_set_time WAIT_FOR do_set_time';
===========================================
cat mdev4578_debug_sync.patch === modified file 'sql/sql_show.cc' + DEBUG_SYNC(thd,"fill_schema_processlist_after_unow"); |