Docs or code for log_slow_verbosity = standard are wrong

Bug #1484613 reported by Daniel Nichter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.1
Won't Fix
Medium
Unassigned
5.5
Triaged
Medium
Unassigned
5.6
Triaged
Medium
Unassigned
5.7
Triaged
Medium
Unassigned

Bug Description

PS 5.1, 5.5, and 5.6 docs say "standard: Equivalent to enabling microtime,innodb" but this is not true:

Server version: 5.6.13-rc61.0 Percona Server (GPL), Release 61.0

mysql> SET global log_slow_verbosity=standard;

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| microtime,query_plan |
+-----------------------------+

And the actual slow log output agrees that only microtime,query_plan are set:

# Time: 150813 16:58:24
# User@Host: root[root] @ localhost [] Id: 272
# Schema: fipar Last_errno: 0 Killed: 0
# Query_time: 0.000377 Lock_time: 0.000096 Rows_sent: 3 Rows_examined: 3 Rows_affected: 0
# Bytes_sent: 959 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0
# 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

So either docs are wrong, or the code is not properly aliasing/setting standard=microtime,innodb.

tags: added: slow-extended
Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Easy to confirm with 5.6.

https://www.percona.com/doc/percona-server/5.5/diagnostics/slow_extended.html#log_slow_verbosity
https://www.percona.com/doc/percona-server/5.6/diagnostics/slow_extended.html#log_slow_verbosity

nilnandan@desktop:~/Downloads$ mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 39
Server version: 5.6.25-73.1-log Percona Server (GPL), Release 73.1, Revision 07b797f

Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| |
+-----------------------------+
1 row in set (0.00 sec)

mysql> SET global log_slow_verbosity=standard;
Query OK, 0 rows affected (0.01 sec)

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| microtime,query_plan |
+-----------------------------+
1 row in set (0.00 sec)

Changed in percona-server:
status: New → Confirmed
Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Verified with 5.5 .

nilnandan.joshi@bm-support01:~$ mysql -uroot -p --socket=/tmp/mysql_sandbox5544.sock
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.5.44-37.3 Percona Server (GPL), Release 37.3, Revision 729fbe2

Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| |
+-----------------------------+
1 row in set (0.00 sec)

mysql> SET global log_slow_verbosity=standard;
Query OK, 0 rows affected (0.00 sec)

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| microtime,query_plan |
+-----------------------------+
1 row in set (0.00 sec)

mysql> quit

Revision history for this message
Nilnandan Joshi (nilnandan-joshi) wrote :

Same with 5.1

nilnandan.joshi@bm-support01:~/sandboxes$ mysql -uroot -p --socket=/tmp/mysql_sandbox5173.sock
Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.73-14.12 Percona Server (GPL), Release 14.12, Revision 624

Copyright (c) 2009-2015 Percona LLC and/or its affiliates
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| microtime |
+-----------------------------+
1 row in set (0.00 sec)

mysql> SET global log_slow_verbosity=standard;
Query OK, 0 rows affected (0.00 sec)

mysql> select @@global.log_slow_verbosity;
+-----------------------------+
| @@global.log_slow_verbosity |
+-----------------------------+
| microtime,query_plan |
+-----------------------------+
1 row in set (0.00 sec)

mysql>

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1644

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.