Hi,
Has anyone else seen this? We frequently see this on our status page, but it has also been seen whilst adding items:
* Error in query [SELECT DISTINCT h.hostid,h.host FROM hosts h WHERE ((h.hostid BETWEEN 000000000000000 AND 099999999999999)) AND h.status=0 AND EXISTS( SELECT i.itemid FROM items i, functions f, triggers t WHERE i.hostid=h.hostid AND i.status=0 AND i.itemid=f.itemid AND f.triggerid=t.triggerid AND t.status=0) ORDER BY h.host] [Deadlock found when trying to get lock; try restarting transaction]
* mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource[/srv/node03.nms.eu.clara.net/htdocs/include/db.inc.php:544]
* mysql_free_result(): supplied argument is not a valid MySQL result resource[/srv/node03.nms.eu.clara.net/htdocs/include/db.inc.php:546]
I can't get my head around why a select would need to lock a table. We know it's the php doing this bad stuff because we didn't browse to the status page for a few days and we saw no deadlocks.
All our tables are innodb.
These are the queries that caused the last lock:
ID Timestring User Host Victim Time Undo LStrcts Query Text
284 2010-05-21 13:36:47 zabbix node03 No 00:00 40 16 update items set lastclock=1274449004,prevvalue=lastvalue,prevorgva lue=NULL,lastvalue='1' where itemid=46664
140403 2010-05-21 13:36:47 zabbix node03 Yes 00:00 0 29 SELECT DISTINCT h.hostid,h.host FROM hosts h WHERE ((h.hostid BETWEEN 000000000000000 AND 099999999999999)) AND h.status=0 AND EXISTS( SELECT i.itemid FROM items i, functions f, triggers t WHERE i.h
Thanks for any input.
[edit] actually we're running 1.8.2, but the problem is there in both
Has anyone else seen this? We frequently see this on our status page, but it has also been seen whilst adding items:
* Error in query [SELECT DISTINCT h.hostid,h.host FROM hosts h WHERE ((h.hostid BETWEEN 000000000000000 AND 099999999999999)) AND h.status=0 AND EXISTS( SELECT i.itemid FROM items i, functions f, triggers t WHERE i.hostid=h.hostid AND i.status=0 AND i.itemid=f.itemid AND f.triggerid=t.triggerid AND t.status=0) ORDER BY h.host] [Deadlock found when trying to get lock; try restarting transaction]
* mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource[/srv/node03.nms.eu.clara.net/htdocs/include/db.inc.php:544]
* mysql_free_result(): supplied argument is not a valid MySQL result resource[/srv/node03.nms.eu.clara.net/htdocs/include/db.inc.php:546]
I can't get my head around why a select would need to lock a table. We know it's the php doing this bad stuff because we didn't browse to the status page for a few days and we saw no deadlocks.
All our tables are innodb.
These are the queries that caused the last lock:
ID Timestring User Host Victim Time Undo LStrcts Query Text
284 2010-05-21 13:36:47 zabbix node03 No 00:00 40 16 update items set lastclock=1274449004,prevvalue=lastvalue,prevorgva lue=NULL,lastvalue='1' where itemid=46664
140403 2010-05-21 13:36:47 zabbix node03 Yes 00:00 0 29 SELECT DISTINCT h.hostid,h.host FROM hosts h WHERE ((h.hostid BETWEEN 000000000000000 AND 099999999999999)) AND h.status=0 AND EXISTS( SELECT i.itemid FROM items i, functions f, triggers t WHERE i.h
Thanks for any input.
[edit] actually we're running 1.8.2, but the problem is there in both
Comment