I came into work this morning, and first thing I noticed is that one of my Slave databases was running behind.
I took a look at the processlist
and could see that I had the following running.
SELECT Query (1091724 seconds)
SELECT Query (1031500 seconds)
SELECT Query (1031443 seconds)
INSERT Query ( 201692 seconnds)
ALTER Query ( 195500 seconds apx)
They all use the same table.
The thing is, I am pretty certain that the select
queries weren't running that long.
I checked SHOW ENGINE INNODB STATUS
to see what was going on that confirmed the selects
were active for that amount of time.
---TRANSACTION 2499F3C3, ACTIVE 1031443 sec fetching rows
---TRANSACTION 2499EB0F, ACTIVE 1031500 sec fetching rows
---TRANSACTION 2486B035, ACTIVE 1091724 sec fetching rows
Is it possible that MySQL was counting the seconds incorrectly?