I’m trying to use the more accurate query time logging available in percona server (5.1.47-rel11.2-log (Percona Server (GPL), 11.2 , Revision 53)). However, the slow query log often contains entries like this:
That query duration looks like 2^64, so it’s probably really 0, so this query shouldn’t be logged at all. I’ve done a little searching and all I’ve found is others having the same problem. Where is this bug?
That’s interesting, but for me it renders the slow query log useless and thus I can’t use tools like mk-query-digest. I get this number for about 75% of all entries in the slow query log, all for queries that shouldn’t be logged at all. This very low-level bug is propagating through several layers that could easily trap it. I also suspect that it’s also just wrong since the number never varies.
In some ways it’s good since it means that my queries are extremely short!
That article mentions that the absolute accuracy doesn’t really matter that much, though I really would like the recorded value to be at least within a couple of million years of the actual time. Why not use the system clock that’s probably good for 100ths of a second and not subject to multi-cpu problems?