Merge lp:~hrvojem/percona-server/bug868002-5.5 into lp:percona-server/5.5
- bug868002-5.5
- Merge into 5.5
Proposed by
Hrvoje Matijakovic
Status: | Work in progress |
---|---|
Proposed branch: | lp:~hrvojem/percona-server/bug868002-5.5 |
Merge into: | lp:percona-server/5.5 |
Diff against target: |
172 lines (+60/-35) 4 files modified
doc/source/diagnostics/slow_extended_55.rst (+43/-20) doc/source/installation/apt_repo.rst (+7/-8) doc/source/installation/yum_repo.rst (+9/-6) doc/source/release-notes/Percona-Server-5.5.27-28.1.rst (+1/-1) |
To merge this branch: | bzr merge lp:~hrvojem/percona-server/bug868002-5.5 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Needs Fixing | ||
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+122859@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'doc/source/diagnostics/slow_extended_55.rst' | |||
2 | --- doc/source/diagnostics/slow_extended_55.rst 2012-08-03 08:58:37 +0000 | |||
3 | +++ doc/source/diagnostics/slow_extended_55.rst 2012-09-05 13:11:20 +0000 | |||
4 | @@ -42,8 +42,8 @@ | |||
5 | 42 | 42 | ||
6 | 43 | Filters the slow log by the query's execution plan. The value is a comma-delimited string, and can contain any combination of the following values: | 43 | Filters the slow log by the query's execution plan. The value is a comma-delimited string, and can contain any combination of the following values: |
7 | 44 | 44 | ||
10 | 45 | * ``qc_miss``: | 45 | * ``qc_hit``: |
11 | 46 | The query was not found in the query cache. | 46 | The query was found in the query cache. |
12 | 47 | 47 | ||
13 | 48 | * ``full_scan``: | 48 | * ``full_scan``: |
14 | 49 | The query performed a full table scan. | 49 | The query performed a full table scan. |
15 | @@ -259,20 +259,43 @@ | |||
16 | 259 | 259 | ||
17 | 260 | # User@Host: mailboxer[mailboxer] @ [192.168.10.165] | 260 | # User@Host: mailboxer[mailboxer] @ [192.168.10.165] |
18 | 261 | # Thread_id: 11167745 Schema: board | 261 | # Thread_id: 11167745 Schema: board |
26 | 262 | # QC_Hit: No Full_scan: No Full_join: No Tmp_table: Yes Disk_tmp_table: No | 262 | # Query_time: 1.009400 Lock_time: 0.000190 Rows_sent: 4 Rows_examined: 1543719 Rows_affected: 0 Rows_read: 4 |
27 | 263 | # Filesort: Yes Disk_filesort: No Merge_passes: 0 | 263 | # Bytes_sent: 278 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 |
28 | 264 | # Query_time: 0.000659 Lock_time: 0.000070 Rows_sent: 0 Rows_examined: 30 Rows_affected: 0 Rows_read: 30 | 264 | # InnoDB_trx_id: 1500 |
29 | 265 | # innodb_IO_r_ops: 1 innodb_IO_r_bytes: 16384 innodb_IO_r_wait: 0.028487 | 265 | # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No |
30 | 266 | # innodb_rec_lock_wait: 0.000000 innodb_queue_wait: 0.000000 | 266 | # Filesort: No Filesort_on_disk: No Merge_passes: 0 |
31 | 267 | # innodb_pages_distinct: 5 | 267 | # InnoDB_IO_r_ops: 6415 InnoDB_IO_r_bytes: 105103360 InnoDB_IO_r_wait: 0.001279 |
32 | 268 | select count(distinct author_id) from art87.article87 force index (forum_id) where forum_id = 240215 and thread_id = ``710575`` | 268 | # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 |
33 | 269 | # InnoDB_pages_distinct: 6430 | ||
34 | 270 | SET timestamp=1346844943; | ||
35 | 271 | SELECT id,title,production_year FROM title WHERE title = 'Bambi'; | ||
36 | 269 | 272 | ||
37 | 270 | Another example (:variable:`log_slow_verbosity` ``=profiling``): :: | 273 | Another example (:variable:`log_slow_verbosity` ``=profiling``): :: |
38 | 271 | 274 | ||
43 | 272 | # Query_time: 4.555235 Lock_time: 0.000000 Rows_sent: 1 Rows_examined: 0 Rows_affected: 0 Rows_read: 1 | 275 | # Query_time: 0.962742 Lock_time: 0.000202 Rows_sent: 4 Rows_examined: 1543719 Rows_affected: 0 Rows_read: 4 |
44 | 273 | # Profile_starting: 4.554799 Profile_starting_cpu: 0.000000 Profile_checking_permissions: 0.000095 Profile_checking_permissions_cpu: 0.000000 Profile_Opening_tables: 0.000088 Profile_Opening_tables_cpu: 0.000000 Profile_init: 0.000056 Profile_init_cpu: 0.000000 Profile_optimizing: 0.000046 Profile_optimizing_cpu: 0.000000 Profile_executing: 0.000098 Profile_executing_cpu: 0.000000 Profile_end: 0.000049 Profile_end_cpu: 0.000000 Profile_query_end: 0.000045 Profile_query_end_cpu: 0.000000 Profile_freeing_items: 0.000084 Profile_freeing_items_cpu: 0.000000 Profile_logging_slow_query: 0.000045 Profile_logging_slow_query_cpu: 0.000000 | 276 | # Bytes_sent: 278 Tmp_tables: 0 Tmp_disk_tables: 0 Tmp_table_sizes: 0 |
45 | 274 | # Profile_total: 4.555405 Profile_total_cpu: 0.000000 | 277 | # Profile_starting: 0.000030 Profile_starting_cpu: 0.000028 Profile_Waiting_for_query_cache_lock: 0.000003 |
46 | 275 | insert into teee4 select * from teee4 limit 10000000; | 278 | Profile_Waiting_for_query_cache_lock_cpu: 0.000003 Profile_Waiting_on_query_cache_mutex: 0.000003 |
47 | 279 | Profile_Waiting_on_query_cache_mutex_cpu: 0.000003 Profile_checking_query_cache_for_query: 0.000076 | ||
48 | 280 | Profile_checking_query_cache_for_query_cpu: 0.000076 Profile_checking_permissions: 0.000011 | ||
49 | 281 | Profile_checking_permissions_cpu: 0.000011 Profile_Opening_tables: 0.000078 Profile_Opening_tables_cpu: 0.000078 | ||
50 | 282 | Profile_System_lock: 0.000022 Profile_System_lock_cpu: 0.000022 Profile_Waiting_for_query_cache_lock: 0.000003 | ||
51 | 283 | Profile_Waiting_for_query_cache_lock_cpu: 0.000002 Profile_Waiting_on_query_cache_mutex: 0.000054 | ||
52 | 284 | Profile_Waiting_on_query_cache_mutex_cpu: 0.000054 Profile_init: 0.000039 Profile_init_cpu: 0.000040 | ||
53 | 285 | Profile_optimizing: 0.000015 Profile_optimizing_cpu: 0.000014 Profile_statistics: 0.000021 Profile_statistics_cpu: 0.000021 | ||
54 | 286 | Profile_preparing: 0.000020 Profile_preparing_cpu: 0.000020 Profile_executing: 0.000003 Profile_executing_cpu: 0.000003 | ||
55 | 287 | Profile_Sending_data: 0.962324 Profile_Sending_data_cpu: 0.961526 Profile_end: 0.000006 Profile_end_cpu: 0.000005 | ||
56 | 288 | Profile_query_end: 0.000004 Profile_query_end_cpu: 0.000004 Profile_closing_tables: 0.000008 Profile_closing_tables_cpu: 0.000008 | ||
57 | 289 | Profile_freeing_items: 0.000007 Profile_freeing_items_cpu: 0.000007 Profile_Waiting_for_query_cache_lock: 0.000000 | ||
58 | 290 | Profile_Waiting_for_query_cache_lock_cpu: 0.000001 Profile_Waiting_on_query_cache_mutex: 0.000001 | ||
59 | 291 | Profile_Waiting_on_query_cache_mutex_cpu: 0.000001 Profile_freeing_items: 0.000017 Profile_freeing_items_cpu: 0.000016 | ||
60 | 292 | Profile_Waiting_for_query_cache_lock: 0.000001 Profile_Waiting_for_query_cache_lock_cpu: 0.000001 | ||
61 | 293 | Profile_Waiting_on_query_cache_mutex: 0.000000 Profile_Waiting_on_query_cache_mutex_cpu: 0.000001 | ||
62 | 294 | Profile_freeing_items: 0.000001 Profile_freeing_items_cpu: 0.000001 Profile_storing_result_in_query_cache: 0.000002 | ||
63 | 295 | Profile_storing_result_in_query_cache_cpu: 0.000002 Profile_logging_slow_query: 0.000001 Profile_logging_slow_query_cpu: 0.000001 | ||
64 | 296 | # Profile_total: 0.962751 Profile_total_cpu: 0.961950 | ||
65 | 297 | # InnoDB_trx_id: 1700 | ||
66 | 298 | |||
67 | 276 | 299 | ||
68 | 277 | Connection and Schema Identifier | 300 | Connection and Schema Identifier |
69 | 278 | -------------------------------- | 301 | -------------------------------- |
70 | @@ -290,7 +313,7 @@ | |||
71 | 290 | 313 | ||
72 | 291 | The feature also adds information about how many rows were examined for ``SELECT`` queries, and how many were analyzed and affected for ``UPDATE``, ``DELETE``, and ``INSERT`` queries, :: | 314 | The feature also adds information about how many rows were examined for ``SELECT`` queries, and how many were analyzed and affected for ``UPDATE``, ``DELETE``, and ``INSERT`` queries, :: |
73 | 292 | 315 | ||
75 | 293 | # Query_time: 0.000659 Lock_time: 0.000070 Rows_sent: 0 Rows_examined: 30 Rows_affected: 0 Rows_read: 30 | 316 | # Query_time: 0.962742 Lock_time: 0.000202 Rows_sent: 4 Rows_examined: 1543719 Rows_affected: 0 Rows_read: 4 |
76 | 294 | 317 | ||
77 | 295 | Values and context: | 318 | Values and context: |
78 | 296 | 319 | ||
79 | @@ -306,7 +329,7 @@ | |||
80 | 306 | Memory Footprint | 329 | Memory Footprint |
81 | 307 | ---------------- | 330 | ---------------- |
82 | 308 | 331 | ||
84 | 309 | The feature provides information about the amount of bytes sent for the result of the query and the number of temporary tables created for its execution - differentiated by whether they were created on memory or on disk - with the total number of bytes used by them. :: | 332 | The feature provides information about the amount of bytes sent for the result of the query and the number of temporary tables created for its execution - differentiated by whether they were created on memory or on disk - with the total number of bytes used by them. :: |
85 | 310 | 333 | ||
86 | 311 | # Bytes_sent: 8053 Tmp_tables: 1 Tmp_disk_tables: 0 Tmp_table_sizes: 950528 | 334 | # Bytes_sent: 8053 Tmp_tables: 1 Tmp_disk_tables: 0 Tmp_table_sizes: 950528 |
87 | 312 | 335 | ||
88 | @@ -330,8 +353,8 @@ | |||
89 | 330 | 353 | ||
90 | 331 | Each query can be executed in various ways. For example, it may use indexes or do a full table scan, or a temporary table may be needed. These are the things that you can usually see by running ``EXPLAIN`` on the query. The feature will now allow you to see the most important facts about the execution in the log file. :: | 354 | Each query can be executed in various ways. For example, it may use indexes or do a full table scan, or a temporary table may be needed. These are the things that you can usually see by running ``EXPLAIN`` on the query. The feature will now allow you to see the most important facts about the execution in the log file. :: |
91 | 332 | 355 | ||
94 | 333 | # QC_Hit: No Full_scan: No Full_join: No Tmp_table: Yes Disk_tmp_table: No | 356 | # QC_Hit: No Full_scan: Yes Full_join: No Tmp_table: No Tmp_table_on_disk: No |
95 | 334 | # Filesort: Yes Disk_filesort: No Merge_passes: 0 | 357 | # Filesort: No Filesort_on_disk: No Merge_passes: 0 |
96 | 335 | 358 | ||
97 | 336 | The values and their meanings are documented with the :variable:`log_slow_filter` option. | 359 | The values and their meanings are documented with the :variable:`log_slow_filter` option. |
98 | 337 | 360 | ||
99 | @@ -340,9 +363,9 @@ | |||
100 | 340 | 363 | ||
101 | 341 | The final part of the output is the |InnoDB| usage statistics. |MySQL| currently shows many per-session statistics for operations with ``SHOW SESSION STATUS``, but that does not include those of |InnoDB|, which are always global and shared by all threads. This feature lets you see those values for a given query. :: | 364 | The final part of the output is the |InnoDB| usage statistics. |MySQL| currently shows many per-session statistics for operations with ``SHOW SESSION STATUS``, but that does not include those of |InnoDB|, which are always global and shared by all threads. This feature lets you see those values for a given query. :: |
102 | 342 | 365 | ||
106 | 343 | # innodb_IO_r_ops: 1 innodb_IO_r_bytes: 16384 innodb_IO_r_wait: 0.028487 | 366 | # InnoDB_IO_r_ops: 6415 InnoDB_IO_r_bytes: 105103360 InnoDB_IO_r_wait: 0.001279 |
107 | 344 | # innodb_rec_lock_wait: 0.000000 innodb_queue_wait: 0.000000 | 367 | # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 |
108 | 345 | # innodb_pages_distinct: 5 | 368 | # InnoDB_pages_distinct: 6430 |
109 | 346 | 369 | ||
110 | 347 | Values: | 370 | Values: |
111 | 348 | 371 | ||
112 | 349 | 372 | ||
113 | === modified file 'doc/source/installation/apt_repo.rst' | |||
114 | --- doc/source/installation/apt_repo.rst 2012-06-04 13:39:55 +0000 | |||
115 | +++ doc/source/installation/apt_repo.rst 2012-09-05 13:11:20 +0000 | |||
116 | @@ -49,14 +49,13 @@ | |||
117 | 49 | * 12.04LTS (precise) | 49 | * 12.04LTS (precise) |
118 | 50 | 50 | ||
119 | 51 | 51 | ||
128 | 52 | Release Candidate Repository | 52 | Percona `apt` Experimental repository |
129 | 53 | ============================ | 53 | ===================================== |
130 | 54 | 54 | ||
131 | 55 | To subscribe to the release candidate repository, add two lines to the :file:`/etc/apt/sources.list` file, again replacing ``VERSION`` with your server's release version: :: | 55 | Percona offers fresh beta builds from the experimental repository. To enable it add the following lines to your :file:`/etc/apt/sources.list` , replacing ``VERSION`` with the name of your distribution: :: |
132 | 56 | 56 | ||
133 | 57 | deb http://repo.percona.com/apt-rc VERSION main | 57 | deb http://repo.percona.com/apt VERSION main experimental |
134 | 58 | deb-src http://repo.percona.com/apt-rc VERSION main | 58 | deb-src http://repo.percona.com/apt VERSION main experimental |
127 | 59 | |||
135 | 60 | 59 | ||
136 | 61 | Apt-Pinning the packages | 60 | Apt-Pinning the packages |
137 | 62 | ======================== | 61 | ======================== |
138 | 63 | 62 | ||
139 | === modified file 'doc/source/installation/yum_repo.rst' | |||
140 | --- doc/source/installation/yum_repo.rst 2012-01-09 04:35:32 +0000 | |||
141 | +++ doc/source/installation/yum_repo.rst 2012-09-05 13:11:20 +0000 | |||
142 | @@ -73,9 +73,12 @@ | |||
143 | 73 | 73 | ||
144 | 74 | * *Amazon Linux AMI* (works the same as *CentOS* 5) | 74 | * *Amazon Linux AMI* (works the same as *CentOS* 5) |
145 | 75 | 75 | ||
152 | 76 | Release Candidate Repository | 76 | Percona `yum` Experimental repository |
153 | 77 | ============================ | 77 | ===================================== |
154 | 78 | 78 | ||
155 | 79 | To subscribe to the release candidate repository, install the release candidate (RC) *RPM*: :: | 79 | Percona offers fresh beta builds from the experimental repository. To subscribe to the experimental repository, install the experimental *RPM*: :: |
156 | 80 | 80 | ||
157 | 81 | rpm -Uhv http://www.percona.com/downloads/percona-release/percona-rc-0.0-2.x86_64.rpm | 81 | rpm -Uhv http://repo.percona.com/testing/centos/6/os/noarch/percona-testing-0.0-1.noarch.rpm |
158 | 82 | |||
159 | 83 | .. note:: | ||
160 | 84 | This repository works for both RHEL/CentOS 5 and RHEL/CentOS 6 | ||
161 | 82 | 85 | ||
162 | === modified file 'doc/source/release-notes/Percona-Server-5.5.27-28.1.rst' | |||
163 | --- doc/source/release-notes/Percona-Server-5.5.27-28.1.rst 2012-09-03 13:31:37 +0000 | |||
164 | +++ doc/source/release-notes/Percona-Server-5.5.27-28.1.rst 2012-09-05 13:11:20 +0000 | |||
165 | @@ -11,7 +11,7 @@ | |||
166 | 11 | Bug Fixes | 11 | Bug Fixes |
167 | 12 | ========= | 12 | ========= |
168 | 13 | 13 | ||
170 | 14 | |Percona Server| :rn:`5.5.27-28.0` would crash or deadlock in |XtraDB| buffer pool code. This was caused by incorrect mutex handling in recently introduced |InnoDB| code. Bug fixed :bug:`1038225` (*Laurynas Biveinis*). | 14 | |Percona Server| :rn:`5.5.27-28.0` would crash or deadlock in |XtraDB| buffer pool code. This was caused by incorrect mutex handling in porting of the recently introduced InnoDB code to |XtraDB|. Bug fixed :bug:`1038225` (*Laurynas Biveinis*). |
171 | 15 | 15 | ||
172 | 16 | Variables :variable:`innodb_adaptive_flushing_method` and :variable:`innodb_flush_neighbor_pages` would not correctly translate some values internally. Bug fixed :bug:`1039384` (*Laurynas Biveinis*). | 16 | Variables :variable:`innodb_adaptive_flushing_method` and :variable:`innodb_flush_neighbor_pages` would not correctly translate some values internally. Bug fixed :bug:`1039384` (*Laurynas Biveinis*). |
173 | 17 | 17 |
Couple of comments:
1. The log_slow_filter value accepted by the server is qc_miss rather than qc_hit. Which is inconsistent with the "QC_Hit:" value printed in the slow log, but we have to live with that as we cannot change it in stable releases. However, the documentation for log_slow_filter is now incorrect.
2. The bug (more precisely, item(2) from the report) applies to both 5.1 and 5.5. I'm going to target it to 5.1 series.