Slow Query Log showing query with Query_time: 0.000000
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Expired
|
Undecided
|
Unassigned | ||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.5 |
Expired
|
Undecided
|
Unassigned | ||
5.6 |
Expired
|
Undecided
|
Unassigned |
Bug Description
HI,
I am using Percona Server 5.5.22 with below slow query options:
+------
| Variable_name | Value |
+------
| log_slow_
| log_slow_filter | |
| log_slow_queries | ON |
| log_slow_rate_limit | 1 |
| log_slow_rate_type | session |
| log_slow_
| log_slow_
| log_slow_verbosity | microtime,
| slow_launch_time | 2 |
| slow_query_log | ON |
| slow_query_log_file | /var/log/
| slow_query_
| slow_query_
| slow_query_
+------
+------
| Variable_name | Value |
+------
| long_query_time | 10.000000 |
+------
+------
| Variable_name | Value |
+------
| log_queries_
+------
Slow Query Log showing query with Query_time: 0.000000
# Time: 130205 10:03:48
# User@Host: webuser[webuser] @ [192.168.56.200]
# Thread_id: 40979754 Schema: test Last_errno: 0 Killed: 0
# Query_time: 0.000000 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 5 Rows_affected: 2 Rows_read: 0
# Bytes_sent: 11 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0
# InnoDB_trx_id: 9CAEA097
# QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No
# Filesort: No Filesort_on_disk: No Merge_passes: 0
# InnoDB_IO_r_ops: 0 InnoDB_IO_r_bytes: 0 InnoDB_IO_r_wait: 0.000000
# InnoDB_
# InnoDB_
SET timestamp=
select count(*) from foo;
Query even not showing any impact on server like filesort or tmp usage.
** Above SELECT query is sample query i have lots of queries which are showing zero time in slow log. Do let me know if you require any exact query and other variable information.
description: | updated |
tags: | added: slow-extended |
summary: |
- low Query Log showing query with Query_time: 0.000000 + Slow Query Log showing query with Query_time: 0.000000 |
Changed in percona-server: | |
status: | Incomplete → New |
Changed in percona-server: | |
status: | Incomplete → New |
long_query_time can be set per session. Are you 100% sure that these problematic queries are NOT coming from sessions where long_query_time is set to 0?
Also, please, check if the problem is repeatable with recent PS version, 5.5.30-30.2.