mysql show processlist query shows state = null
Asked Answered
H

1

6

I have a script running a batch of very similar queries.
All of them, except one, run without any problem.
Only one query is getting stuck.
In "show processlist" the query has state=null
According to docs, show processlist should report "State=null" only for the "show processlist" thread itself.

    Server version: 5.0.67 MySQL Community Server (GPL)
    mysql> show processlist;
    +---------+--------+-----------+--------------+---------+------+-------+------------------------------------------------------------------------------------------------------+
    | Id      | User   | Host      | db           | Command | Time | State | Info                                                                                                 |
    +---------+--------+-----------+--------------+---------+------+-------+------------------------------------------------------------------------------------------------------+
    | 3866613 | user   | localhost | db_name      | Query   | 1986 | NULL  | select log_time,log_action,log_action_id,log_object_id, @abcde:=if(log_action='abcde',to_            |
    | 3873414 | root   | localhost | NULL         | Query   |    0 | NULL  | show processlist                                                                                     |
    +---------+--------+-----------+--------------+---------+------+-------+------------------------------------------------------------------------------------------------------+
    2 rows in set (0.00 sec)
Helsinki answered 4/4, 2012 at 6:47 Comment(0)
R
2

Could be a bug of your version of mysql, take a look at this bug for more information .

Rohrer answered 4/4, 2012 at 6:52 Comment(1)
thanks. seems to me also like a bug in mysql. tried turning off query cache - it did not help. will try upgrading mysql.Helsinki

© 2022 - 2024 — McMap. All rights reserved.