Merge lp:~percona-toolkit-dev/percona-toolkit/pt-online-schema-change-not-properly-detecting-foreign-keys-1315130 into lp:~percona-toolkit-dev/percona-toolkit/release-2.2.9
- pt-online-schema-change-not-properly-detecting-foreign-keys-1315130
- Merge into release-2.2.9
Proposed by
Frank Cizmich
Status: | Merged |
---|---|
Merged at revision: | 609 |
Proposed branch: | lp:~percona-toolkit-dev/percona-toolkit/pt-online-schema-change-not-properly-detecting-foreign-keys-1315130 |
Merge into: | lp:~percona-toolkit-dev/percona-toolkit/release-2.2.9 |
Diff against target: |
2558 lines (+2492/-1) (has conflicts) 6 files modified
Changelog (+5/-0) bin/pt-online-schema-change (+1/-1) config/deb/changelog (+17/-0) docs/percona-toolkit.pod (+4/-0) docs/release_notes.rst (+2387/-0) t/pt-online-schema-change/bug-1315130.t (+78/-0) Text conflict in Changelog Text conflict in config/deb/changelog Text conflict in docs/percona-toolkit.pod Text conflict in docs/release_notes.rst |
To merge this branch: | bzr merge lp:~percona-toolkit-dev/percona-toolkit/pt-online-schema-change-not-properly-detecting-foreign-keys-1315130 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Frank Cizmich | Pending | ||
Review via email:
|
Commit message
Description of the change
Instead of looking for the parent table in the child table's own schema (where the parent table might not actually be) we now look for it in the contraints "referenced_
This lookup is done in table: information_
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 'Changelog' | |||
2 | --- Changelog 2014-06-05 07:24:48 +0000 | |||
3 | +++ Changelog 2014-07-03 18:13:52 +0000 | |||
4 | @@ -1,7 +1,12 @@ | |||
5 | 1 | Changelog for Percona Toolkit | 1 | Changelog for Percona Toolkit |
6 | 2 | 2 | ||
7 | 3 | <<<<<<< TREE | ||
8 | 3 | v2.2.8 released 2014-06-04 | 4 | v2.2.8 released 2014-06-04 |
9 | 4 | 5 | ||
10 | 6 | ======= | ||
11 | 7 | v2.2.8 released 2014-05-30 | ||
12 | 8 | |||
13 | 9 | >>>>>>> MERGE-SOURCE | ||
14 | 5 | * Removed pt-agent | 10 | * Removed pt-agent |
15 | 6 | * Added pt-slave-restart GTID support | 11 | * Added pt-slave-restart GTID support |
16 | 7 | * Added pt-table-checksum --plugin | 12 | * Added pt-table-checksum --plugin |
17 | 8 | 13 | ||
18 | === modified file 'bin/pt-online-schema-change' | |||
19 | --- bin/pt-online-schema-change 2014-06-05 07:24:48 +0000 | |||
20 | +++ bin/pt-online-schema-change 2014-07-03 18:13:52 +0000 | |||
21 | @@ -9815,7 +9815,7 @@ | |||
22 | 9815 | 9815 | ||
23 | 9816 | my $sql = "SELECT table_schema, table_name " | 9816 | my $sql = "SELECT table_schema, table_name " |
24 | 9817 | . "FROM information_schema.key_column_usage " | 9817 | . "FROM information_schema.key_column_usage " |
26 | 9818 | . "WHERE constraint_schema='$tbl->{db}' " | 9818 | . "WHERE referenced_table_schema='$tbl->{db}' " |
27 | 9819 | . "AND referenced_table_name='$tbl->{tbl}'"; | 9819 | . "AND referenced_table_name='$tbl->{tbl}'"; |
28 | 9820 | PTDEBUG && _d($sql); | 9820 | PTDEBUG && _d($sql); |
29 | 9821 | my $rows = $cxn->dbh()->selectall_arrayref($sql); | 9821 | my $rows = $cxn->dbh()->selectall_arrayref($sql); |
30 | 9822 | 9822 | ||
31 | === modified file 'config/deb/changelog' | |||
32 | --- config/deb/changelog 2014-06-05 07:24:48 +0000 | |||
33 | +++ config/deb/changelog 2014-07-03 18:13:52 +0000 | |||
34 | @@ -1,3 +1,4 @@ | |||
35 | 1 | <<<<<<< TREE | ||
36 | 1 | percona-toolkit (2.2.8) unstable; urgency=low | 2 | percona-toolkit (2.2.8) unstable; urgency=low |
37 | 2 | 3 | ||
38 | 3 | * Removed pt-agent | 4 | * Removed pt-agent |
39 | @@ -12,6 +13,22 @@ | |||
40 | 12 | 13 | ||
41 | 13 | -- Percona Toolkit Developers <toolkit-dev@percona.com> Thu, 05 Jun 2014 07:07:52 +0000 | 14 | -- Percona Toolkit Developers <toolkit-dev@percona.com> Thu, 05 Jun 2014 07:07:52 +0000 |
42 | 14 | 15 | ||
43 | 16 | ======= | ||
44 | 17 | percona-toolkit (2.2.8) unstable; urgency=low | ||
45 | 18 | |||
46 | 19 | * Removed pt-agent | ||
47 | 20 | * Added pt-slave-restart GTID support | ||
48 | 21 | * Added pt-table-checksum --plugin | ||
49 | 22 | * Fixed bug 1304062: --ignore-tables does not work correctly | ||
50 | 23 | * Fixed bug 1295667: pt-deadlock-logger logs incorrect ts | ||
51 | 24 | * Fixed bug 1254233: pt-mysql-summary blank InnoDB section for 5.6 | ||
52 | 25 | * Fixed bug 1286250: pt-online-schema-change requests password twice | ||
53 | 26 | * Fixed bug 965553: pt-query-digest dosn't fingerprint true/false literals correctly | ||
54 | 27 | * Fixed bug 290911: pt-show-grant --ask-pass prints "Enter password" to STDOUT | ||
55 | 28 | |||
56 | 29 | -- Percona Toolkit Developers <toolkit-dev@percona.com> Fri, 30 May 2014 16:14:53 +0000 | ||
57 | 30 | |||
58 | 31 | >>>>>>> MERGE-SOURCE | ||
59 | 15 | percona-toolkit (2.2.7) unstable; urgency=low | 32 | percona-toolkit (2.2.7) unstable; urgency=low |
60 | 16 | 33 | ||
61 | 17 | * Fixed bug 1279502: --version-check behaves like spyware | 34 | * Fixed bug 1279502: --version-check behaves like spyware |
62 | 18 | 35 | ||
63 | === modified file 'docs/percona-toolkit.pod' | |||
64 | --- docs/percona-toolkit.pod 2014-06-05 07:24:48 +0000 | |||
65 | +++ docs/percona-toolkit.pod 2014-07-03 18:13:52 +0000 | |||
66 | @@ -557,6 +557,10 @@ | |||
67 | 557 | 557 | ||
68 | 558 | =head1 VERSION | 558 | =head1 VERSION |
69 | 559 | 559 | ||
70 | 560 | <<<<<<< TREE | ||
71 | 560 | Percona Toolkit v2.2.8 released 2014-06-05 | 561 | Percona Toolkit v2.2.8 released 2014-06-05 |
72 | 562 | ======= | ||
73 | 563 | Percona Toolkit v2.2.8 released 2014-05-30 | ||
74 | 564 | >>>>>>> MERGE-SOURCE | ||
75 | 561 | 565 | ||
76 | 562 | =cut | 566 | =cut |
77 | 563 | 567 | ||
78 | === modified file 'docs/release_notes.rst' | |||
79 | --- docs/release_notes.rst 2014-06-05 07:24:48 +0000 | |||
80 | +++ docs/release_notes.rst 2014-07-03 18:13:52 +0000 | |||
81 | @@ -1,3 +1,4 @@ | |||
82 | 1 | <<<<<<< TREE | ||
83 | 1 | Release Notes | 2 | Release Notes |
84 | 2 | ************* | 3 | ************* |
85 | 3 | 4 | ||
86 | @@ -2395,3 +2396,2389 @@ | |||
87 | 2395 | --------- | 2396 | --------- |
88 | 2396 | 2397 | ||
89 | 2397 | * Forked, combined, and rebranded Maatkit and Aspersa as Percona Toolkit. | 2398 | * Forked, combined, and rebranded Maatkit and Aspersa as Percona Toolkit. |
90 | 2399 | ======= | ||
91 | 2400 | Release Notes | ||
92 | 2401 | ************* | ||
93 | 2402 | |||
94 | 2403 | v2.2.8 released 2014-06-04 | ||
95 | 2404 | ========================== | ||
96 | 2405 | |||
97 | 2406 | Percona Toolkit 2.2.8 has been released. This release has two new features and six bug fixes. | ||
98 | 2407 | |||
99 | 2408 | New Features: | ||
100 | 2409 | |||
101 | 2410 | * pt-agent has been replaced by percona-agent. More information on percona-agent can be found in the `Introducing the 3-Minute MySQL Monitor <http://www.mysqlperformanceblog.com/2014/05/23/3-minute-mysql-monitor/>`_ blogpost. | ||
102 | 2411 | * pt-slave-restart now supports MySQL 5.6 global transaction IDs. | ||
103 | 2412 | |||
104 | 2413 | * pt-table-checkum now has new --plugin option which is similar to pt-online-schema-change --plugin | ||
105 | 2414 | |||
106 | 2415 | Bugs Fixed: | ||
107 | 2416 | |||
108 | 2417 | * Fixed bug 1254233: pt-mysql-summary was showing blank InnoDB section for 5.6 because it was using ``have_innodb`` variable which was removed in MySQL 5.6. | ||
109 | 2418 | |||
110 | 2419 | * Fixed bug 965553: pt-query-digest didn't fingerprint true/false literals correctly. | ||
111 | 2420 | |||
112 | 2421 | * Fixed bug 1286250: pt-online-schema-change was requesting password twice. | ||
113 | 2422 | |||
114 | 2423 | * Fixed bug 1295667: pt-deadlock-logger was logging incorrect timestamp because tool wasn't aware of the time-zones. | ||
115 | 2424 | |||
116 | 2425 | * Fixed bug 1304062: when multiple tables were specified with pt-table-checksum --ignore-tables, only one of them would be ignored. | ||
117 | 2426 | |||
118 | 2427 | * Fixed bug : pt-show-grant --ask-pass option was asking for password in ``STDOUT`` instead of ``STDERR`` where it could be seen. | ||
119 | 2428 | |||
120 | 2429 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
121 | 2430 | |||
122 | 2431 | v2.2.7 released 2014-02-20 | ||
123 | 2432 | ========================== | ||
124 | 2433 | |||
125 | 2434 | Percona Toolkit 2.2.7 has been released. This release has only one bug fix. | ||
126 | 2435 | |||
127 | 2436 | * Fixed bug 1279502: --version-check behaves like spyware | ||
128 | 2437 | |||
129 | 2438 | Although never used, --version-check had the ability to get any local program's version. This fix removed that ability. | ||
130 | 2439 | |||
131 | 2440 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
132 | 2441 | |||
133 | 2442 | v2.2.6 released 2013-12-18 | ||
134 | 2443 | ========================== | ||
135 | 2444 | |||
136 | 2445 | Percona Toolkit 2.2.6 has been released. This release has 16 bug fixes and a few new features. One bug fix is very important, so 2.2 users are strongly encouraged to upgrade: | ||
137 | 2446 | |||
138 | 2447 | * Fixed bug 1223458: pt-table-sync deletes child table rows | ||
139 | 2448 | |||
140 | 2449 | Buried in the pt-table-sync docs is this warning: | ||
141 | 2450 | |||
142 | 2451 | Also be careful with tables that have foreign key constraints with C<ON DELETE> | ||
143 | 2452 | or C<ON UPDATE> definitions because these might cause unintended changes on the | ||
144 | 2453 | child tables. | ||
145 | 2454 | |||
146 | 2455 | Until recently, either no one had this problem, or no one reported it, or no one realized that pt-table-sync caused it. In the worst case, pt-table-sync could delete all rows in child tables, which is quite surprising and bad. As of 2.2.6, pt-table-sync has option --[no]check-child-tables which is on by default. In cases were this "bug" can happen, pt-table-sync prints a warning and skips the table. Read the option's docs to learn more. | ||
147 | 2456 | |||
148 | 2457 | Another good bug fix is: | ||
149 | 2458 | |||
150 | 2459 | * Fixed bug 1217013: pt-duplicate-key-checker misses exact duplicate unique indexes | ||
151 | 2460 | |||
152 | 2461 | After saying "pt-duplicate-key-checker hasn't had a bug in years" at enough conferences, users proved us wrong--thanks! The tool is better now. | ||
153 | 2462 | |||
154 | 2463 | * Fixed bug 1195628: pt-online-schema-change gets stuck looking for its own _new table | ||
155 | 2464 | |||
156 | 2465 | This was poor feedback from the tool more than a bug. There was a point in the tool where it waited forever for slaves to catch up, but it did this silently. Now the tool reports --progress while it's waiting and it reports which slaves, if any, it found and intends to check. In short: its feedback delivers a better user experience. | ||
157 | 2466 | |||
158 | 2467 | Finally, this bug (more like a feature request/change) might be a backwards-incompatible change: | ||
159 | 2468 | |||
160 | 2469 | * Fixed bug 1214685: pt-mysql-summary schema dump prompt can't be disabled | ||
161 | 2470 | |||
162 | 2471 | The change is that pt-mysql-summary no longer prompts to dump and summarize schemas. To do this, you must specify --databases or, a new option, --all-databases. Several users said this behavior was better, so we made the change even though some might consider it a backwards-incompatible change. | ||
163 | 2472 | |||
164 | 2473 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
165 | 2474 | |||
166 | 2475 | Changelog | ||
167 | 2476 | --------- | ||
168 | 2477 | |||
169 | 2478 | * Added pt-query-digest support for Percona Server slow log rate limiting | ||
170 | 2479 | * Added pt-agent --ping | ||
171 | 2480 | * Added pt-mysql-summary --all-databases | ||
172 | 2481 | * Added pt-stalk --sleep-collect | ||
173 | 2482 | * Added pt-table-sync --[no]check-child-tables | ||
174 | 2483 | * Fixed bug 1249150: PTDEBUG prints some info to STDOUT | ||
175 | 2484 | * Fixed bug 1248363: pt-agent requires restart after changing MySQL options | ||
176 | 2485 | * Fixed bug 1248778: pt-agent --install on PXC is not documented | ||
177 | 2486 | * Fixed bug 1250973: pt-agent --install doesn't check for previous install | ||
178 | 2487 | * Fixed bug 1250968: pt-agent --install suggest MySQL user isn't quoted | ||
179 | 2488 | * Fixed bug 1251004: pt-agent --install error about slave is confusing | ||
180 | 2489 | * Fixed bug 1251726: pt-agent --uninstall fails if agent is running | ||
181 | 2490 | * Fixed bug 1248785: pt-agent docs don't list privs required for its MySQL user | ||
182 | 2491 | * Fixed bug 1215016: pt-deadlock-logger docs use pt-fk-error-logger | ||
183 | 2492 | * Fixed bug 1201443: pt-duplicate-key-checker error when EXPLAIN key_len=0 | ||
184 | 2493 | * Fixed bug 1217013: pt-duplicate-key-checker misses exact duplicate unique indexes | ||
185 | 2494 | * Fixed bug 1214685: pt-mysql-summary schema dump prompt can't be disabled | ||
186 | 2495 | * Fixed bug 1195628: pt-online-schema-change gets stuck looking for its own _new table | ||
187 | 2496 | * Fixed bug 1249149: pt-query-digest stats prints to STDOUT instead of STDERR | ||
188 | 2497 | * Fixed bug 1071979: pt-stak error parsing df with NFS | ||
189 | 2498 | * Fixed bug 1223458: pt-table-sync deletes child table rows | ||
190 | 2499 | |||
191 | 2500 | v2.2.5 released 2013-10-16 | ||
192 | 2501 | ========================== | ||
193 | 2502 | |||
194 | 2503 | Percona Toolkit 2.2.5 has been released. This release has four new features and a number of bugfixes. | ||
195 | 2504 | |||
196 | 2505 | Query_time histogram has been added to the pt-query-digest JSON output, not the actual chart but the values necessary to render the chart later, so the values for each bucket. | ||
197 | 2506 | |||
198 | 2507 | As of pt-table-checksum 2.2.5, skipped chunks cause a non-zero exit status. An exit status of zero or 32 is equivalent to a zero exit status with skipped chunks in previous versions of the tool. | ||
199 | 2508 | |||
200 | 2509 | New --no-drop-triggers option has been implemented for pt-online-schema-change in case users want to rename the tables manually, when the load is low. | ||
201 | 2510 | |||
202 | 2511 | New --new-table-name option has been added to pt-online-schema-change which can be used to specify the temporary table name. | ||
203 | 2512 | |||
204 | 2513 | * Fixed bug #1199589: pt-archiver would delete the data even with the --dry-run option. | ||
205 | 2514 | |||
206 | 2515 | * Fixed bug #821692: pt-query-digest didn't distill LOAD DATA correctly. | ||
207 | 2516 | |||
208 | 2517 | * Fixed bug #984053: pt-query-digest didn't distill INSERT/REPLACE without INTO correctly. | ||
209 | 2518 | |||
210 | 2519 | * Fixed bug #1206677: pt-agent docs were referencing wrong web address. | ||
211 | 2520 | |||
212 | 2521 | * Fixed bug #1210537: pt-table-checksum --recursion-method=cluster would crash if no nodes were found. | ||
213 | 2522 | |||
214 | 2523 | Percona Toolkit packages can be downloaded from | ||
215 | 2524 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
216 | 2525 | Repositories (http://www.percona.com/software/repositories | ||
217 | 2526 | |||
218 | 2527 | Changelog | ||
219 | 2528 | --------- | ||
220 | 2529 | |||
221 | 2530 | * Added Query_time histogram bucket counts to pt-query-digest JSON output | ||
222 | 2531 | * Added pt-online-schema-change --[no]drop-triggers option | ||
223 | 2532 | * Fixed bug #1199589: pt-archiver deletes data despite --dry-run | ||
224 | 2533 | * Fixed bug #944051: pt-table-checksum has ambiguous exit status | ||
225 | 2534 | * Fixed bug #1209436: pt-kill --log-dsn may not work on Perl 5.8 | ||
226 | 2535 | * Fixed bug #1210537: pt-table-checksum --recursion-method=cluster crashes if no nodes are found | ||
227 | 2536 | * Fixed bug #1215608: pt-online-schema-change new table suffix is hard-coded | ||
228 | 2537 | * Fixed bug #1229861: pt-table-sync quotes float values, can't sync | ||
229 | 2538 | * Fixed bug #821692: pt-query-digest doesn't distill LOAD DATA correctly | ||
230 | 2539 | * Fixed bug #984053: pt-query-digest doesn't distill INSERT/REPLACE without INTO correctly | ||
231 | 2540 | * Fixed bug #1206728: pt-deadlock-logger 2.2 requires DSN on command line | ||
232 | 2541 | * Fixed bug #1226721: pt-agent on CentOS 5 fails to send data | ||
233 | 2542 | * Fixed bug #821690: pt-query-digest doesn't distill IF EXISTS correctly | ||
234 | 2543 | * Fixed bug #1206677: pt-agent docs reference clodu.percona.com | ||
235 | 2544 | |||
236 | 2545 | v2.2.4 released 2013-07-18 | ||
237 | 2546 | ========================== | ||
238 | 2547 | |||
239 | 2548 | Percona Toolkit 2.2.4 has been released. This release two new features and a number of bugfixes. | ||
240 | 2549 | |||
241 | 2550 | pt-query-digest --output json includes query examples as of v2.2.3. Some people might not want this because it exposes real data. New option, --output json-anon, has been implemented. This option will provide the same data without query examples. It's "anonymous" in the sense that there's no identifying data; nothing more than schema and table structs can be inferred from fingerprints. | ||
242 | 2551 | |||
243 | 2552 | When using drop swap with pt-online-schema-change there is some production impact. This impact can be measured because tool outputs the current timestamp on lines for operations that may take awhile. | ||
244 | 2553 | |||
245 | 2554 | * Fixed bug #1163735: pt-table-checksum fails if explicit_defaults_for_timestamp is enabled in 5.6 | ||
246 | 2555 | pt-table-checksum would fail if variable explicit_defaults_for_timestamp was enabled in MySQL 5.6. | ||
247 | 2556 | |||
248 | 2557 | * Fixed bug #1182856: Zero values causes "Invalid --set-vars value: var=0" | ||
249 | 2558 | Trying to assign 0 to any variable by using --set-vars option would cause “Invalid --set-vars value” message. | ||
250 | 2559 | |||
251 | 2560 | * Fixed bug #1188264: pt-online-schema-change error copying rows: Undefined subroutine &pt_online_schema_change::get | ||
252 | 2561 | Fixed the typo in the pt-online-schema-change code that could lead to a tool crash when copying the rows. | ||
253 | 2562 | |||
254 | 2563 | * Fixed bug #1199591: pt-table-checksum doesn't use non-unique index with highest cardinality | ||
255 | 2564 | pt-table-checksum was using the first non-unique index instead of the one with the highest cardinality due to a sorting bug. | ||
256 | 2565 | |||
257 | 2566 | Percona Toolkit packages can be downloaded from | ||
258 | 2567 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
259 | 2568 | Repositories (http://www.percona.com/software/repositories | ||
260 | 2569 | |||
261 | 2570 | Changelog | ||
262 | 2571 | --------- | ||
263 | 2572 | |||
264 | 2573 | * Added pt-query-digest anonymous JSON output | ||
265 | 2574 | * Added pt-online-schema-change timestamp output | ||
266 | 2575 | * Fixed bug #1136559: pt-table-checksum: Deep recursion on subroutine "SchemaIterator::_iterate_dbh" | ||
267 | 2576 | * Fixed bug #1163735: pt-table-checksum fails if explicit_defaults_for_timestamp is enabled in 5.6 | ||
268 | 2577 | * Fixed bug #1182856: Zero values causes "Invalid --set-vars value: var=0" | ||
269 | 2578 | * Fixed bug #1188264: pt-online-schema-change error copying rows: Undefined subroutine &pt_online_schema_change::get | ||
270 | 2579 | * Fixed bug #1195034: pt-deadlock-logger error: Use of uninitialized value $ts in pattern match (m//) | ||
271 | 2580 | * Fixed bug #1199591: pt-table-checksum doesn't use non-unique index with highest cardinality | ||
272 | 2581 | * Fixed bug #1168434: pt-upgrade reports differences on NULL | ||
273 | 2582 | * Fixed bug #1172317: pt-sift does not work if pt-stalk did not collect due to a full disk | ||
274 | 2583 | * Fixed bug #1176010: pt-query-digest doesn't group db and `db` together | ||
275 | 2584 | * Fixed bug #1137556: pt-heartbeat docs don't account for --utc | ||
276 | 2585 | * Fixed bug #1168106: pt-variable-advisor has the wrong default value for innodb_max_dirty_pages_pct in 5.5 and 5.6 | ||
277 | 2586 | * Fixed bug #1168110: pt-variable-advisor shows key_buffer_size in 5.6 as unconfigured (even though it is) | ||
278 | 2587 | * Fixed bug #1171968: pt-query-digest docs don't mention --type=rawlog | ||
279 | 2588 | * Fixed bug #1174956: pt-query-digest and pt-fingerprint don't strip some multi-line comments | ||
280 | 2589 | |||
281 | 2590 | |||
282 | 2591 | v2.2.3 released 2013-06-17 | ||
283 | 2592 | ========================== | ||
284 | 2593 | |||
285 | 2594 | Percona Toolkit 2.2.3 has been released which has only two changes: pt-agent | ||
286 | 2595 | and a bug fix for pt-online-schema-change. pt-agent is not a command line | ||
287 | 2596 | tool but a client-side agent for Percona Cloud Tools. Visit | ||
288 | 2597 | https://cloud.percona.com for more information. The pt-online-schema-change | ||
289 | 2598 | bug fix is bug 1188002: pt-online-schema-change causes "ERROR 1146 (42S02): | ||
290 | 2599 | "Table 'db._t_new' doesn't exist". This happens when the tool's triggers | ||
291 | 2600 | cannot be dropped. | ||
292 | 2601 | |||
293 | 2602 | Percona Toolkit packages can be downloaded from | ||
294 | 2603 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
295 | 2604 | Repositories (http://www.percona.com/software/repositories/). | ||
296 | 2605 | |||
297 | 2606 | Changelog | ||
298 | 2607 | --------- | ||
299 | 2608 | |||
300 | 2609 | * Added new tool: pt-agent | ||
301 | 2610 | * Fixed bug 1188002: pt-online-schema-change causes "ERROR 1146 (42S02): Table 'db._t_new' doesn't exist" | ||
302 | 2611 | |||
303 | 2612 | v2.2.2 released 2013-04-24 | ||
304 | 2613 | ========================== | ||
305 | 2614 | |||
306 | 2615 | Percona Toolkit 2.2.2 has been released. This is the second release of | ||
307 | 2616 | the 2.2 series and aims to fix bugs in the previous release and provide | ||
308 | 2617 | usability enhacements to the toolkit. | ||
309 | 2618 | |||
310 | 2619 | Users may note the revival of the --show-all option in pt-query-digest. | ||
311 | 2620 | This had been removed in 2.2.1, but resulted in too much output in | ||
312 | 2621 | certain cases. | ||
313 | 2622 | |||
314 | 2623 | A new --recursion-method was added to pt-table-checksum: cluster. This | ||
315 | 2624 | method attempts to auto-discover cluster nodes, alleviating the need to | ||
316 | 2625 | specify cluster node DSNs in a DSN table (--recursion-method=dsn). | ||
317 | 2626 | |||
318 | 2627 | The following highlights some of the more interesting and "hot" bugs in | ||
319 | 2628 | this release: | ||
320 | 2629 | |||
321 | 2630 | * Bug #1127450: pt-archiver --bulk-insert may corrupt data | ||
322 | 2631 | |||
323 | 2632 | pt-archiver --bulk-insert didn't work with --charset UTF-8. This revealed | ||
324 | 2633 | a case where the tool could corrupt data by double-encoding. This is now | ||
325 | 2634 | fixed, but remains relatively dangerous if using DBD::mysql 3.0007 which | ||
326 | 2635 | does not handle UTF-8 properly. | ||
327 | 2636 | |||
328 | 2637 | * Bug #1163372: pt-heartbeat --utc --check always returns 0 | ||
329 | 2638 | |||
330 | 2639 | Unfortunately, the relatively new --utc option for pt-heart was still | ||
331 | 2640 | broken because "[MySQL] interprets date as a value in the current time zone | ||
332 | 2641 | and converts it to an internal value in UTC." Now the tool works correctly | ||
333 | 2642 | with --utc by specifying "SET time_zone='+0:00'", and older versions of | ||
334 | 2643 | the tool can be made to work by specifying --set-vars "time_zone='+0:00'". | ||
335 | 2644 | |||
336 | 2645 | * Bug #821502: Some tools don't have --help or --version | ||
337 | 2646 | |||
338 | 2647 | pt-align, pt-mext, pt-pmp and pt-sift now have both options. | ||
339 | 2648 | |||
340 | 2649 | This is another solid bug fix release, and all users are encouraged to upgrade. | ||
341 | 2650 | |||
342 | 2651 | Percona Toolkit packages can be downloaded from | ||
343 | 2652 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
344 | 2653 | Repositories (http://www.percona.com/software/repositories/). | ||
345 | 2654 | |||
346 | 2655 | Changelog | ||
347 | 2656 | --------- | ||
348 | 2657 | |||
349 | 2658 | * Added --show-all to pt-query-digest | ||
350 | 2659 | * Added --recursion-method=cluster to pt-table-checksum | ||
351 | 2660 | * Fixed bug 1127450: pt-archiver --bulk-insert may corrupt data | ||
352 | 2661 | * Fixed bug 1163372: pt-heartbeat --utc --check always returns 0 | ||
353 | 2662 | * Fixed bug 1156901: pt-query-digest --processlist reports duplicate queries for replication thread | ||
354 | 2663 | * Fixed bug 1160338: pt-query-digest 2.2 prints unwanted debug info on tcpdump parsing errors | ||
355 | 2664 | * Fixed bug 1160918: pt-query-digest 2.2 prints too many string values | ||
356 | 2665 | * Fixed bug 1156867: pt-stalk prints the wrong variable name in verbose mode when --function is used | ||
357 | 2666 | * Fixed bug 1081733: pt-stalk plugins can't access the real --prefix | ||
358 | 2667 | * Fixed bug 1099845: pt-table-checksum pxc same_node function incorrectly uses wsrep_sst_receive_address | ||
359 | 2668 | * Fixed bug 821502: Some tools don't have --help or --version | ||
360 | 2669 | * Fixed bug 947893: Some tools use @@hostname without /*!50038*/ | ||
361 | 2670 | * Fixed bug 1082406: An explicitly set wsrep_node_incoming_address may make SHOW STATUS LIKE 'wsrep_incoming_addresses' return a portless address | ||
362 | 2671 | |||
363 | 2672 | v2.2.1 released 2013-03-14 | ||
364 | 2673 | ========================== | ||
365 | 2674 | |||
366 | 2675 | Percona Toolkit 2.2.1 has been released. This is the first release in | ||
367 | 2676 | the new 2.2 series which supersedes the 2.1 series and renders the 2.0 | ||
368 | 2677 | series obsolete. We plan to do one more bug fix release for 2.1 (2.1.10), | ||
369 | 2678 | but otherwise all new development and fixes and will now focus on 2.2. | ||
370 | 2679 | |||
371 | 2680 | Percona Toolkit 2.2 has been several months in the making, and it turned | ||
372 | 2681 | out very well, with many more new features, changes, and improvements than | ||
373 | 2682 | originally anticipated. Here are the highlights: | ||
374 | 2683 | |||
375 | 2684 | ---- | ||
376 | 2685 | |||
377 | 2686 | * Official support for MySQL 5.6 | ||
378 | 2687 | |||
379 | 2688 | We started beta support for MySQL 5.6 in 2.1.8 when 5.6 was still beta. | ||
380 | 2689 | Now that 5.6 is GA, so is our support for it. Check out the Percona Toolkit | ||
381 | 2690 | supported platforms and versions: | ||
382 | 2691 | http://www.percona.com/mysql-support/policies/percona-toolkit-supported-platforms-and-versions | ||
383 | 2692 | |||
384 | 2693 | When you upgrade to MySQL 5.6, be sure to upgrade to Percona Toolkit 2.2, too. | ||
385 | 2694 | |||
386 | 2695 | * Official support for Percona XtraDB Cluster (PXC) | ||
387 | 2696 | |||
388 | 2697 | We also started beta support for Percona XtraDB Cluster in 2.1.8, but | ||
389 | 2698 | now that support is official in 2.2 because we have had many months to | ||
390 | 2699 | work with PXC and figure out which tools work with it and how. There's | ||
391 | 2700 | still one noticeable omission: pt-table-sync. It's still unclear if | ||
392 | 2701 | or how one would sync a cluster that, in theory, doesn't become out-of-sync. | ||
393 | 2702 | As Percona XtraDB Cluster develops, Percona Toolkit will continue to | ||
394 | 2703 | evolve to support it. | ||
395 | 2704 | |||
396 | 2705 | * pt-online-schema-change (pt-osc) is much more resilient | ||
397 | 2706 | |||
398 | 2707 | pt-online-schema-change 2.1 has been a great success, and people have been | ||
399 | 2708 | using it for evermore difficult and challenging tasks. Consequently, we | ||
400 | 2709 | needed to make it "try harder", even though it already tried pretty hard | ||
401 | 2710 | to keep working despite recoverable errors and such. Whereas pt-osc 2.1 | ||
402 | 2711 | only retries certain operations, pt-osc 2.2 retries every critical operation, | ||
403 | 2712 | and its tries and wait time between tries for all operations are configurable. | ||
404 | 2713 | Also, we removed --lock-wait-timeout which set innodb_lock_wait_timeout | ||
405 | 2714 | because that now conflicts, or is at least confused with, lock_wait_timeout | ||
406 | 2715 | (introduced in MySQL 5.5) for metadata locks. Now --set-vars is used to | ||
407 | 2716 | set both of these (or any) system variables. For a quick intro to metadata | ||
408 | 2717 | locks and how they may affect you, see Ovais's article: | ||
409 | 2718 | http://www.mysqlperformanceblog.com/2013/02/01/implications-of-metadata-locking-changes-in-mysql-5-5/ | ||
410 | 2719 | |||
411 | 2720 | What does this all mean? In short: pt-online-schema-change 2.2 is far more | ||
412 | 2721 | resilient out of the box. It's also aware of metadata locks now, whereas | ||
413 | 2722 | 2.1 was not really aware of them. And it's highly configurable, so you can | ||
414 | 2723 | make the tool try _very_ hard to keep working. | ||
415 | 2724 | |||
416 | 2725 | * pt-upgrade is brand-new | ||
417 | 2726 | |||
418 | 2727 | pt-upgrade was written once long ago, thrown into the world, and then never | ||
419 | 2728 | heard from again... until now. Now that we have four base versions of | ||
420 | 2729 | MySQL (5.0, 5.1, 5.5, and 5.6), plus at least four major forks (Percona | ||
421 | 2730 | Server, MariaDB, Percona XtraDB Cluster, and MariaDB Galera Cluster), | ||
422 | 2731 | upgrades are fashionable, so to speak. Problem is: "original" pt-upgrade | ||
423 | 2732 | was too noisy and too complex. pt-upgrade 2.2 is far simpler and far | ||
424 | 2733 | easier to use. It's basically what you expect from such a tool. | ||
425 | 2734 | |||
426 | 2735 | Moreover, it has a really helpful new feature: "reference results", i.e. | ||
427 | 2736 | saved results from running queries on a server. Granted, this can take | ||
428 | 2737 | _a lot_ of disk space, but it allows you to "run now, compare later." | ||
429 | 2738 | |||
430 | 2739 | If you're thinking about upgrading, give pt-upgrade a try. It also reads | ||
431 | 2740 | every type of log now (slow, general, binary, and tcpdump), so you shouldn't | ||
432 | 2741 | have a problem finding queries to run and compare. | ||
433 | 2742 | |||
434 | 2743 | * pt-query-digest is simpler | ||
435 | 2744 | |||
436 | 2745 | pt-query-digest 2.2 has fewer options now. Basically, we re-focused it | ||
437 | 2746 | on its primary objective: analyzing MySQL query logs. So the ability | ||
438 | 2747 | to parse memcached, Postgres, Apache, and other logs was removed. We | ||
439 | 2748 | also removed several options that probably nobody ever used, and | ||
440 | 2749 | changed/renamed other options to be more logical. The result is a simpler, | ||
441 | 2750 | more focused tool, i.e. less overwhelming. | ||
442 | 2751 | |||
443 | 2752 | Also, pt-query-digest 2.2 can save results in JSON format (--output=json). | ||
444 | 2753 | This feature is still in development while we determine the optimal | ||
445 | 2754 | JSON structure. | ||
446 | 2755 | |||
447 | 2756 | * Version check is on by default | ||
448 | 2757 | |||
449 | 2758 | Way back in 2.1.4, released September/October 2012, we introduced a feature | ||
450 | 2759 | called "version check" into most tools: http://percona.com/version-check | ||
451 | 2760 | It's like a lot of software that automatically checks for updates, but | ||
452 | 2761 | it's also more: it's a free service from Percona that advises when certain | ||
453 | 2762 | programs (Percona Toolkit tools, MySQL, Perl, etc.) are either out of date | ||
454 | 2763 | or are known bad versions. For example, there are two versions of the | ||
455 | 2764 | DBD::mysql Perl module that have problems. And there are certain versions | ||
456 | 2765 | of MySQL that have critical bugs. Version check will warn you about these | ||
457 | 2766 | if your system is running them. | ||
458 | 2767 | |||
459 | 2768 | What's new in 2.2 is that, whereas this feature (specifically, the option | ||
460 | 2769 | in tools: --version-check) was off by default, now it's on by default. | ||
461 | 2770 | If the IO::Socket::SSL Perl module is installed (easily available through | ||
462 | 2771 | your package manager), it will use a secure (https) connection over the web, | ||
463 | 2772 | else it will use a standard (http) connection. | ||
464 | 2773 | |||
465 | 2774 | Check out http://percona.com/version-check for more information. | ||
466 | 2775 | |||
467 | 2776 | * pt-query-advisor, pt-tcp-model, pt-trend, and pt-log-player are gone | ||
468 | 2777 | |||
469 | 2778 | We removed pt-query-advisor, pt-tcp-model, pt-trend, and pt-log-player. | ||
470 | 2779 | Granted, no tool is ever really gone: if you need one of these tools, | ||
471 | 2780 | get it from 2.1. pt-log-player is now superseded by Percona Playback | ||
472 | 2781 | (http://www.percona.com/doc/percona-playback/). pt-query-advisor was | ||
473 | 2782 | removed so that we can focus our efforts on its online counterpart instead: | ||
474 | 2783 | https://tools.percona.com/query-advisor. The other tools were special | ||
475 | 2784 | projects that were not widely used. | ||
476 | 2785 | |||
477 | 2786 | * pt-stalk and pt-mysql-summary have built-in MySQL options | ||
478 | 2787 | |||
479 | 2788 | No more "pt-stalk -- -h db1 -u me". pt-stalk 2.2 and pt-mysql-summary 2.2 | ||
480 | 2789 | have all the standard MySQL options built-in, like other tools: --user, | ||
481 | 2790 | --host, --port, --password, --socket, --defaults-file. So now the command | ||
482 | 2791 | line is what you expect: pt-stalk -h dhb1 -u me. | ||
483 | 2792 | |||
484 | 2793 | * pt-stalk --no-stalk is no longer magical | ||
485 | 2794 | |||
486 | 2795 | Originally, pt-stalk --no-stalk was meant to simulate pt-collect, i.e. | ||
487 | 2796 | collect once and exit. To do that, the tool magically set some options | ||
488 | 2797 | and clobbered others, resulting in no way to do repeated collections | ||
489 | 2798 | at intervals. Now --no-stalk means only that: don't stalk, just collect, | ||
490 | 2799 | respecting --interval and --iterations as usual. So to collect once | ||
491 | 2800 | and exit: pt-stalk --no-stalk --iterations 1. | ||
492 | 2801 | |||
493 | 2802 | * pt-fk-error-logger and pt-deadlock-logger are standardized | ||
494 | 2803 | |||
495 | 2804 | Similar to the pt-stalk --no-stalk changes, pt-fk-error-logger and | ||
496 | 2805 | pt-deadlock-logger received mini overhauls in 2.2 to make their | ||
497 | 2806 | run-related options (--run-time, --interval, --iterations) standard. | ||
498 | 2807 | If you hadn't noticed, one tool would run forever by default, while | ||
499 | 2808 | the other would run once and exit. And each treated their run-related | ||
500 | 2809 | options a little differently. This magic is gone now: both tools run | ||
501 | 2810 | forever by default, so specify --iterations or --run-time to limit how | ||
502 | 2811 | long they run. | ||
503 | 2812 | |||
504 | 2813 | ---- | ||
505 | 2814 | |||
506 | 2815 | There were other miscellaneous bug fixes, too. See | ||
507 | 2816 | https://launchpad.net/percona-toolkit/+milestone/2.2.1 for the full list. | ||
508 | 2817 | |||
509 | 2818 | As the first release in a new series, 2.2 features are not yet finalized. | ||
510 | 2819 | In other words, we may change things like the pt-query-digest --output json | ||
511 | 2820 | format in future releases after receiving real-world feedback. | ||
512 | 2821 | |||
513 | 2822 | Percona Toolkit 2.2 is an exciting release with many helpful new | ||
514 | 2823 | features. Users are encouraged to begin upgrading, particularly given | ||
515 | 2824 | that, except for the forthcoming 2.1.10 release, no more work will be | ||
516 | 2825 | done on 2.1 (unless you're a Percona customer with a support contract or | ||
517 | 2826 | other agreement). | ||
518 | 2827 | |||
519 | 2828 | If you upgrade from 2.1 to 2.2, be sure to re-read tools' documentation | ||
520 | 2829 | to see what has changed because much as changed for certain tools. | ||
521 | 2830 | |||
522 | 2831 | Percona Toolkit packages can be downloaded from | ||
523 | 2832 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
524 | 2833 | Repositories (http://www.percona.com/software/repositories/). | ||
525 | 2834 | |||
526 | 2835 | Changelog | ||
527 | 2836 | --------- | ||
528 | 2837 | |||
529 | 2838 | * Official support for MySQL 5.6 | ||
530 | 2839 | * Official support for Percona XtraDB Cluster | ||
531 | 2840 | * Redesigned pt-query-digest | ||
532 | 2841 | * Redesigned pt-upgrade | ||
533 | 2842 | * Redesigned pt-fk-error-logger | ||
534 | 2843 | * Redesigned pt-deadlock-logger | ||
535 | 2844 | * Changed --set-vars in all tools | ||
536 | 2845 | * Renamed --retries to --tries in pt-online-schema-change | ||
537 | 2846 | * Added --check-read-only to pt-heartbeat | ||
538 | 2847 | * Added MySQL options to pt-mysql-summary | ||
539 | 2848 | * Added MySQL options to pt-stalk | ||
540 | 2849 | * Removed --lock-wait-timeout from pt-online-schema-change (use --set-vars) | ||
541 | 2850 | * Removed --lock-wait-timeout from pt-table-checksum (use --set-vars) | ||
542 | 2851 | * Removed pt-query-advisor | ||
543 | 2852 | * Removed pt-tcp-model | ||
544 | 2853 | * Removed pt-trend | ||
545 | 2854 | * Removed pt-log-player | ||
546 | 2855 | * Enabled --version-check by default in all tools | ||
547 | 2856 | * Fixed bug 1008796: Several tools don't have --database | ||
548 | 2857 | * Fixed bug 1087319: Quoter::serialize_list() doesn't handle multiple NULL values | ||
549 | 2858 | * Fixed bug 1086018: pt-config-diff needs to parse wsrep_provider_options | ||
550 | 2859 | * Fixed bug 1056838: pt-fk-error-logger --run-time works differently than pt-deadlock-logger --run-time | ||
551 | 2860 | * Fixed bug 1093016: pt-online-schema-change doesn't retry RENAME TABLE | ||
552 | 2861 | * Fixed bug 1113301: pt-online-schema-change blocks on metadata locks | ||
553 | 2862 | * Fixed bug 1125665: pt-stalk --no-stalk silently clobbers other options, acts magically | ||
554 | 2863 | * Fixed bug 1019648: pt-stalk truncates InnoDB status if there are too many transactions | ||
555 | 2864 | * Fixed bug 1087804: pt-table-checksum doesn't warn if no slaves are found | ||
556 | 2865 | |||
557 | 2866 | v2.1.9 released 2013-02-14 | ||
558 | 2867 | ========================== | ||
559 | 2868 | |||
560 | 2869 | Percona Toolkit 2.1.9 has been released. This release primarily aims to | ||
561 | 2870 | restore backwards-compatibility with pt-heartbeat 2.1.7 and older, but it | ||
562 | 2871 | also has important bug fixes for other tools. | ||
563 | 2872 | |||
564 | 2873 | * Fixed bug 1103221: pt-heartbeat 2.1.8 doesn't use precision/sub-second timestamps | ||
565 | 2874 | * Fixed bug 1099665: pt-heartbeat 2.1.8 reports big time drift with UTC_TIMESTAMP | ||
566 | 2875 | |||
567 | 2876 | The previous release switched the time authority from Perl to MySQL, and from | ||
568 | 2877 | local time to UTC. Unfortunately, these changes caused a loss of precision and, | ||
569 | 2878 | if mixing versions of pt-heartbeat, made the tool report a huge amount of | ||
570 | 2879 | replication lag. This release makes the tool compatible with pt-heartbeat | ||
571 | 2880 | 2.1.7 and older again, but the UTC behavior introduced in 2.1.8 is now only | ||
572 | 2881 | available by specifying the new --utc option. | ||
573 | 2882 | |||
574 | 2883 | * Fixed bug 918056: pt-table-sync false-positive error "Cannot nibble table because MySQL chose no index instead of the PRIMARY index" | ||
575 | 2884 | |||
576 | 2885 | This is an important bug fix for pt-table-sync: certain chunks from | ||
577 | 2886 | pt-table-checksum resulted in an impossible WHERE, causing the false-positive | ||
578 | 2887 | "Cannot nibble" error, if those chunks had diffs. | ||
579 | 2888 | |||
580 | 2889 | * Fixed bug 1099836: pt-online-schema-change fails with "Duplicate entry" on MariaDB | ||
581 | 2890 | |||
582 | 2891 | MariaDB 5.5.28 (https://kb.askmonty.org/en/mariadb-5528-changelog/) fixed | ||
583 | 2892 | a bug: "Added warnings for duplicate key errors when using INSERT IGNORE". | ||
584 | 2893 | However, standard MySQL does not warn in this case, despite the docs saying | ||
585 | 2894 | that it should. Since pt-online-schema-change has always intended to ignore | ||
586 | 2895 | duplicate entry errors by using "INSERT IGNORE", it now handles the MariaDB | ||
587 | 2896 | case by also ignoring duplicate entry errors in the code. | ||
588 | 2897 | |||
589 | 2898 | * Fixed bug 1103672: pt-online-schema-change makes bad DELETE trigger if PK is re-created with new columns | ||
590 | 2899 | |||
591 | 2900 | pt-online-schema-change 2.1.9 handles another case of changing the primary key. | ||
592 | 2901 | However, since changing the primary key is tricky, the tool stops if --alter | ||
593 | 2902 | contains "DROP PRIMARY KEY", and you have to specify --no-check-alter to | ||
594 | 2903 | acknowledge this case. | ||
595 | 2904 | |||
596 | 2905 | * Fixed bug 1099933: pt-stalk is too verbose, fills up log | ||
597 | 2906 | |||
598 | 2907 | Previously, pt-stalk printed a line for every check. Since the tool is | ||
599 | 2908 | designed to be a long-running daemon, this could result in huge log files | ||
600 | 2909 | with "matched=no" lines. The tool has a new --verbose option which makes it | ||
601 | 2910 | quieter by default. | ||
602 | 2911 | |||
603 | 2912 | All users should upgrade, but in particular, users of versions 2.1.7 and | ||
604 | 2913 | older are strongly recommended to skip 2.1.8 and go directly to 2.1.9. | ||
605 | 2914 | |||
606 | 2915 | Users of pt-heartbeat in 2.1.8 who prefer the UTC behavior should keep in | ||
607 | 2916 | mind that they will have to use the --utc option after upgrading. | ||
608 | 2917 | |||
609 | 2918 | Percona Toolkit packages can be downloaded from | ||
610 | 2919 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
611 | 2920 | Repositories (http://www.percona.com/software/repositories/). | ||
612 | 2921 | |||
613 | 2922 | Changelog | ||
614 | 2923 | --------- | ||
615 | 2924 | |||
616 | 2925 | * Fixed bug 1103221: pt-heartbeat 2.1.8 doesn't use precision/sub-second timestamps | ||
617 | 2926 | * Fixed bug 1099665: pt-heartbeat 2.1.8 reports big time drift with UTC_TIMESTAMP | ||
618 | 2927 | * Fixed bug 1099836: pt-online-schema-change fails with "Duplicate entry" on MariaDB | ||
619 | 2928 | * Fixed bug 1103672: pt-online-schema-change makes bad DELETE trigger if PK is re-created with new columns | ||
620 | 2929 | * Fixed bug 1115333: pt-pmp doesn't list the origin lib for each function | ||
621 | 2930 | * Fixed bug 823411: pt-query-digest shouldn't print "Error: none" for tcpdump | ||
622 | 2931 | * Fixed bug 1103045: pt-query-digest fails to parse non-SQL errors | ||
623 | 2932 | * Fixed bug 1105077: pt-table-checksum: Confusing error message with binlog_format ROW or MIXED on slave | ||
624 | 2933 | * Fixed bug 918056: pt-table-sync false-positive error "Cannot nibble table because MySQL chose no index instead of the PRIMARY index" | ||
625 | 2934 | * Fixed bug 1099933: pt-stalk is too verbose, fills up log | ||
626 | 2935 | |||
627 | 2936 | v2.1.8 released 2012-12-21 | ||
628 | 2937 | ========================== | ||
629 | 2938 | |||
630 | 2939 | Percona Toolkit 2.1.8 has been released. This release includes 28 bug fixes, beta support for MySQL 5.6, and extensive support for Percona XtraDB Cluster (PXC). Users intending on running the tools on Percona XtraDB Cluster or MySQL 5.6 should upgrade. The following tools have been verified to work on PXC versions 5.5.28 and newer: | ||
631 | 2940 | |||
632 | 2941 | * pt-table-chcecksum | ||
633 | 2942 | * pt-online-schema-change | ||
634 | 2943 | * pt-archive | ||
635 | 2944 | * pt-mysql-summary | ||
636 | 2945 | * pt-heartbeat | ||
637 | 2946 | * pt-variable-advisor | ||
638 | 2947 | * pt-config-diff | ||
639 | 2948 | * pt-deadlock-logger | ||
640 | 2949 | |||
641 | 2950 | However, there are limitations when running these tools on PXC; see the Percona XtraDB Cluster section in each tool's documentation for further details. All other tools, with the exception of pt-slave-find, pt-slave-delay and pt-slave-restart, should also work correctly, but in some cases they have not been modified to take advantage of PXC features, so they may behave differently in future releases. | ||
642 | 2951 | |||
643 | 2952 | The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
644 | 2953 | |||
645 | 2954 | * Fixed bug 1082599: pt-query-digest fails to parse timestamp with no query | ||
646 | 2955 | |||
647 | 2956 | Slow logs which include timestamps but no query--which can happen if using slow_query_log_timestamp_always in Percona Server--were misparsed, resulting in an erroneous report. Now such no-query events show up in reports as ``/* No query */``. | ||
648 | 2957 | |||
649 | 2958 | * Fixed bug 1078838: pt-query-digest doesn't parse general log with "Connect user as user" | ||
650 | 2959 | |||
651 | 2960 | The "as" was misparsed and the following word would end up reported as the database; pt-query-digest now handles this correctly. | ||
652 | 2961 | |||
653 | 2962 | * Fixed bug 1015590: pt-mysql-summary doesn't handle renamed variables in Percona Server 5.5 | ||
654 | 2963 | |||
655 | 2964 | Some renamed variables had caused the Percona Server section to work unreliably. | ||
656 | 2965 | |||
657 | 2966 | * Fixed bug 1074179: pt-table-checksum doesn't ignore tables for --replicate-check-only | ||
658 | 2967 | |||
659 | 2968 | When using --replicate-check-only, filter options like --databases and --tables were not applied. | ||
660 | 2969 | |||
661 | 2970 | * Fixed bug 886059: pt-heartbeat handles timezones inconsistently | ||
662 | 2971 | |||
663 | 2972 | Previously, pt-heartbeat respected the MySQL time zone, but this caused false readings (e.g. very high lag) with slaves running in different time zones. Now pt-heartbeat uses UTC regardless of the server or MySQL time zone. | ||
664 | 2973 | |||
665 | 2974 | * Fixed bug 1079341: pt-online-schema-change checks for foreign keys on MyISAM tables | ||
666 | 2975 | |||
667 | 2976 | Since MyISAM tables can't have foreign keys, and the tool uses the information_schema to find child tables, this could cause unnecessary load on the server. | ||
668 | 2977 | |||
669 | 2978 | 2.1.8 continues the trend of solid bug fix releases, and all 2.1 users are encouraged to upgrade. | ||
670 | 2979 | |||
671 | 2980 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
672 | 2981 | |||
673 | 2982 | Changelog | ||
674 | 2983 | --------- | ||
675 | 2984 | |||
676 | 2985 | * Beta support for MySQL 5.6 | ||
677 | 2986 | * Beta support for Percona XtraDB Cluster | ||
678 | 2987 | * pt-online-schema-change: If ran on Percona XtraDB Cluster, requires PXC 5.5.28 or newer | ||
679 | 2988 | * pt-table-checksum: If ran on Percona XtraDB Cluster, requires PXC 5.5.28 or newer | ||
680 | 2989 | * pt-upgrade: Added --[no]disable-query-cache | ||
681 | 2990 | * Fixed bug 927955: Bad pod2rst transformation | ||
682 | 2991 | * Fixed bug 898665: Bad online docs formatting for --[no]vars | ||
683 | 2992 | * Fixed bug 1022622: pt-config-diff is case-sensitive | ||
684 | 2993 | * Fixed bug 1007938: pt-config-diff doesn't handle end-of-line comments | ||
685 | 2994 | * Fixed bug 917770: pt-config-diff Use of uninitialized value in substitution (s///) at line 1996 | ||
686 | 2995 | * Fixed bug 1082104: pt-deadlock-logger doesn't handle usernames with dashes | ||
687 | 2996 | * Fixed bug 886059: pt-heartbeat handles timezones inconsistently | ||
688 | 2997 | * Fixed bug 1086259: pt-kill --log-dsn timestamp is wrong | ||
689 | 2998 | * Fixed bug 1015590: pt-mysql-summary doesn't handle renamed variables in Percona Server 5.5 | ||
690 | 2999 | * Fixed bug 1079341: pt-online-schema-change checks for foreign keys on MyISAM tables | ||
691 | 3000 | * Fixed bug 823431: pt-query-advisor hangs on big queries | ||
692 | 3001 | * Fixed bug 996069: pt-query-advisor RES.001 is incorrect | ||
693 | 3002 | * Fixed bug 933465: pt-query-advisor false positive on RES.001 | ||
694 | 3003 | * Fixed bug 937234: pt-query-advisor issues wrong RES.001 | ||
695 | 3004 | * Fixed bug 1082599: pt-query-digest fails to parse timestamp with no query | ||
696 | 3005 | * Fixed bug 1078838: pt-query-digest doesn't parse general log with "Connect user as user" | ||
697 | 3006 | * Fixed bug 957442: pt-query-digest with custom --group-by throws error | ||
698 | 3007 | * Fixed bug 887638: pt-query-digest prints negative byte offset | ||
699 | 3008 | * Fixed bug 831525: pt-query-digest help output mangled | ||
700 | 3009 | * Fixed bug 932614: pt-slave-restart CHANGE MASTER query causes error | ||
701 | 3010 | * Fixed bug 1046440: pt-stalk purge_samples slows down checks | ||
702 | 3011 | * Fixed bug 986847: pt-stalk does not report NFS iostat | ||
703 | 3012 | * Fixed bug 1074179: pt-table-checksum doesn't ignore tables for --replicate-check-only | ||
704 | 3013 | * Fixed bug 911385: pt-table-checksum v2 fails when --resume + --ignore-database is used | ||
705 | 3014 | * Fixed bug 1041391: pt-table-checksum debug statement for "Chosen hash func" prints undef | ||
706 | 3015 | * Fixed bug 1075638: pt-table-checksum Illegal division by zero at line 7950 | ||
707 | 3016 | * Fixed bug 1052475: pt-table-checksum uninitialized value in numeric lt (<) at line 8611 | ||
708 | 3017 | * Fixed bug 1078887: Tools let --set-vars clobber the required SQL mode | ||
709 | 3018 | |||
710 | 3019 | v2.1.7 released 2012-11-19 | ||
711 | 3020 | ========================== | ||
712 | 3021 | |||
713 | 3022 | Percona Toolkit 2.1.7 has been released which is a hotfix for two bugs when using pt-table-checksum with Percona XtraDB Cluster: | ||
714 | 3023 | |||
715 | 3024 | * Bug 1080384: pt-table-checksum 2.1.6 crashes using PTDEBUG | ||
716 | 3025 | * Bug 1080385: pt-table-checksum 2.1.6 --check-binlog-format doesn't ignore PXC nodes | ||
717 | 3026 | |||
718 | 3027 | If you're using pt-table-checksum with a Percona XtraDB Cluster, you should upgrade. Otherwise, users can wait until the next full release. | ||
719 | 3028 | |||
720 | 3029 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
721 | 3030 | |||
722 | 3031 | Changelog | ||
723 | 3032 | --------- | ||
724 | 3033 | |||
725 | 3034 | * Fixed bug 1080384: pt-table-checksum 2.1.6 crashes using PTDEBUG | ||
726 | 3035 | * Fixed bug 1080385: pt-table-checksum 2.1.6 --check-binlog-format doesn't ignore PXC nodes | ||
727 | 3036 | |||
728 | 3037 | v2.1.6 released 2012-11-13 | ||
729 | 3038 | ========================== | ||
730 | 3039 | |||
731 | 3040 | Percona Toolkit 2.1.6 has been released. This release includes 33 bug fixes and three new features: pt-online-schema-change now handles renaming columns without losing data, removing one of the tool's limitations. pt-online-schema-change also got two new options: --default-engine and --statistics. Finally, pt-stalk now has a plugin hook interface, available through the --plugin option. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
732 | 3041 | |||
733 | 3042 | * Bug 978133: pt-query-digest review table privilege checks don't work | ||
734 | 3043 | |||
735 | 3044 | The same checks were removed from pt-table-checksum on 2.1.3 and pt-table-sync on 2.1.4, so this just follows suit. | ||
736 | 3045 | |||
737 | 3046 | * Bug 938068: pt-table-checksum doesn't warn if binlog_format=row or mixed on slaves | ||
738 | 3047 | |||
739 | 3048 | A particularly important fix, as it may stop pt-table-checksum from breaking replication in these setups. | ||
740 | 3049 | |||
741 | 3050 | * Bug 1043438: pt-table-checksum doesn't honor --run-time while checking replication lag | ||
742 | 3051 | |||
743 | 3052 | If you run multiple instances of pt-table-checksum on a badly lagged server, actually respecting --run-time stops the instances from divebombing the server when the replica catches up. | ||
744 | 3053 | |||
745 | 3054 | * Bug 1062324: pt-online-schema-change DELETE trigger fails when altering primary key | ||
746 | 3055 | |||
747 | 3056 | Fixed by choosing a key on the new table for the DELETE trigger. | ||
748 | 3057 | |||
749 | 3058 | * Bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
750 | 3059 | |||
751 | 3060 | A follow up to the same fix in the previous release, this adds to warnings for cases in which pt-table-checksum may work incorrectly and require some user intervention: One for the case of master -> cluster, and one for cluster1 -> cluster2. | ||
752 | 3061 | |||
753 | 3062 | * Bug 821715: LOAD DATA LOCAL INFILE broken in some platforms | ||
754 | 3063 | |||
755 | 3064 | This bug has hounded the toolkit for quite some time. In some platforms, trying to use LOAD DATA LOCAL INFILE would fail as if the user didn't have enough privileges to perform the operation. This was a misdiagnoses from MySQL; The actual problem was that the libmysqlclient.so provided by some vendors was compiled in a way that disallowed users from using the statement without some extra work. This fix adds an 'L' option to the DSNs the toolkit uses, tells the the tools to explicitly enables LOAD DATA LOCAL INFILE. This affected two pt-archiver and pt-upgrade, so if you are on an effected OS and need to use those, you can simply tag an L=1 to your DSN and everything should start working. | ||
756 | 3065 | |||
757 | 3066 | * Bug 866075: pt-show-grant doesn't support column-level grants | ||
758 | 3067 | |||
759 | 3068 | This was actually the 'hottest' bug in the tracker. | ||
760 | 3069 | |||
761 | 3070 | This is another solid bug fix release, and all 2.1 users are encouraged to upgrade. | ||
762 | 3071 | |||
763 | 3072 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
764 | 3073 | |||
765 | 3074 | Changelog | ||
766 | 3075 | --------- | ||
767 | 3076 | |||
768 | 3077 | * pt-online-schema-change: Columns can now be renamed without data loss | ||
769 | 3078 | * pt-online-schema-change: New --default-engine option | ||
770 | 3079 | * pt-stalk: Plugin hooks available through the --plugin option to extend the tool's functionality | ||
771 | 3080 | * Fixed bug 1069951: --version-check default should be explicitly "off" | ||
772 | 3081 | * Fixed bug 821715: LOAD DATA LOCAL INFILE broken in some platforms | ||
773 | 3082 | * Fixed bug 995896: Useless use of cat in Daemon.pm | ||
774 | 3083 | * Fixed bug 1039074: Tools exit 0 on error parsing options, should exit non-zero | ||
775 | 3084 | * Fixed bug 938068: pt-table-checksum doesn't warn if binlog_format=row or mixed on slaves | ||
776 | 3085 | * Fixed bug 1009510: pt-table-checksum breaks replication if a slave table is missing or different | ||
777 | 3086 | * Fixed bug 1043438: pt-table-checksum doesn't honor --run-time while checking replication lag | ||
778 | 3087 | * Fixed bug 1073532: pt-table-checksum error: Use of uninitialized value in int at line 2778 | ||
779 | 3088 | * Fixed bug 1016131: pt-table-checksum can crash with --columns if none match | ||
780 | 3089 | * Fixed bug 1039569: pt-table-checksum dies if creating the --replicate table fails | ||
781 | 3090 | * Fixed bug 1059732: pt-table-checksum doesn't test all hash functions | ||
782 | 3091 | * Fixed bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
783 | 3092 | * Fixed bug 1043528: pt-deadlock-logger can't parse db/tbl/index on partitioned tables | ||
784 | 3093 | * Fixed bug 1062324: pt-online-schema-change DELETE trigger fails when altering primary key | ||
785 | 3094 | * Fixed bug 1058285: pt-online-schema-change fails if sql_mode explicitly or implicitly uses ANSI_QUOTES | ||
786 | 3095 | * Fixed bug 1073996: pt-online-schema-change fails with "I need a max_rows argument" | ||
787 | 3096 | * Fixed bug 1039541: pt-online-schema-change --quiet doesn't disable --progress | ||
788 | 3097 | * Fixed bug 1045317: pt-online-schema-change doesn't report how many warnings it suppressed | ||
789 | 3098 | * Fixed bug 1060774: pt-upgrade fails if select column > 64 chars | ||
790 | 3099 | * Fixed bug 1070916: pt-mysql-summary may report the wrong cnf file | ||
791 | 3100 | * Fixed bug 903229: pt-mysql-summary incorrectly categorizes databases | ||
792 | 3101 | * Fixed bug 866075: pt-show-grant doesn't support column-level grants | ||
793 | 3102 | * Fixed bug 978133: pt-query-digest review table privilege checks don't work | ||
794 | 3103 | * Fixed bug 956981: pt-query-digest docs for event attributes link to defunct Maatkit wiki | ||
795 | 3104 | * Fixed bug 1047335: pt-duplicate-key-checker fails when it encounters a crashed table | ||
796 | 3105 | * Fixed bug 1047701: pt-stalk deletes non-empty files | ||
797 | 3106 | * Fixed bug 1070434: pt-stalk --no-stalk and --iterations 1 don't wait for the collect | ||
798 | 3107 | * Fixed bug 1052722: pt-fifo-split is processing n-1 rows initially | ||
799 | 3108 | * Fixed bug 1013407: pt-find documentation error with mtime and InnoDB | ||
800 | 3109 | * Fixed bug 1059757: pt-trend output has no header | ||
801 | 3110 | * Fixed bug 1063933: pt-visual-explain docs link to missing pdf | ||
802 | 3111 | * Fixed bug 1075773: pt-fk-error-logger crashes if there's no foreign key error | ||
803 | 3112 | * Fixed bug 1075775: pt-fk-error-logger --dest table example doesn't work | ||
804 | 3113 | |||
805 | 3114 | v2.1.5 released 2012-10-08 | ||
806 | 3115 | ========================== | ||
807 | 3116 | |||
808 | 3117 | Percona Toolkit 2.1.5 has been released. This release is less than two weeks after the release of 2.1.4 because we wanted to address these bugs quickly: | ||
809 | 3118 | |||
810 | 3119 | * Bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
811 | 3120 | |||
812 | 3121 | * Bug 1063912: pt-table-checksum 2.1.4 miscategorizes Percona XtraDB Cluster-based slaves as cluster nodes | ||
813 | 3122 | |||
814 | 3123 | * Bug 1064016: pt-table-sync 2.1.4 --version-check may not work with HTTPS/SSL | ||
815 | 3124 | |||
816 | 3125 | The first two bugs fix how pt-table-checksum works with Percona XtraDB Cluster (PXC). Although the 2.1.4 release did introduce support for PXC, these bugs prevented pt-table-checksum from working correctly with a cluster. | ||
817 | 3126 | |||
818 | 3127 | The third bug is also related to a feature new in 2.1.4: --version-check. The feature uses HTTPS/SSL by default, but some modules in pt-table-sync weren't update which could prevent it from working on older systems. Related, the version check web page mentioned in tools' documentation was also created. | ||
819 | 3128 | |||
820 | 3129 | If you're using pt-table-checksum with a Percona XtraDB Cluster, you should definitely upgrade. Otherwise, users can wait until 2.1.6 for another full release. | ||
821 | 3130 | |||
822 | 3131 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
823 | 3132 | |||
824 | 3133 | Changelog | ||
825 | 3134 | --------- | ||
826 | 3135 | |||
827 | 3136 | * Fixed bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
828 | 3137 | * Fixed bug 1063912: pt-table-checksum 2.1.4 miscategorizes Percona XtraDB Cluster-based slaves as cluster nodes | ||
829 | 3138 | * Fixed bug 1064016: pt-table-sync 2.1.4 --version-check may not work with HTTPS/SSL | ||
830 | 3139 | * Fixed bug 1060423: Missing version-check page | ||
831 | 3140 | |||
832 | 3141 | v2.1.4 released 2012-09-20 | ||
833 | 3142 | ========================== | ||
834 | 3143 | |||
835 | 3144 | Percona Toolkit 2.1.4 has been released. This release includes 26 bug fixes and three new features: Making pt-table-checksum work with Percona XtraDB Cluster, adding a --run-time option to pt-table-checksum, and implementing the "Version Check" feature, enabled through the --version-check switch. For further information on --version-check, see http://www.mysqlperformanceblog.com/2012/09/10/introducing-the-version-check-feature-in-percona-toolkit/. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
836 | 3145 | |||
837 | 3146 | * Fixed bug 1017626: pt-table-checksum doesn't work with Percona XtraDB Cluster | ||
838 | 3147 | |||
839 | 3148 | Note that this requires Percona XtraDB Cluster 5.5.27-23.6 or newer, as the fix depends on this bug https://bugs.launchpad.net/codership-mysql/+bug/1023911 being resolved. | ||
840 | 3149 | |||
841 | 3150 | * Fixed bug 1034170: pt-table-checksum --defaults-file isn't used for slaves | ||
842 | 3151 | |||
843 | 3152 | Previously, users had no recourse but using --recursion-method in conjunction with a dsn table to sidestep this bug, so this fix is a huge usability gain. This was caused by the toolkit not copying the -F portion of the main dsn. | ||
844 | 3153 | |||
845 | 3154 | * Fixed bug 1039184: pt-upgrade error "I need a right_sth argument" | ||
846 | 3155 | |||
847 | 3156 | Which were stopping pt-upgrade from working on a MySQL 4.1 host. | ||
848 | 3157 | |||
849 | 3158 | * Fixed bug 1036747: pt-table-sync priv checks need to be removed | ||
850 | 3159 | |||
851 | 3160 | The same checks were removed in the previous release from pt-table-checksum, so this continues the trend. | ||
852 | 3161 | |||
853 | 3162 | * Fixed bug 1038995: pt-stalk --notify-by-email fails | ||
854 | 3163 | |||
855 | 3164 | This was a bug in our shell option parsing library, and would potentially affect any option starting with 'no'. | ||
856 | 3165 | |||
857 | 3166 | Like 2.1.3, this is another solid bug fix release, and 2.1 users are encouraged to upgrade. | ||
858 | 3167 | |||
859 | 3168 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
860 | 3169 | |||
861 | 3170 | Changelog | ||
862 | 3171 | --------- | ||
863 | 3172 | |||
864 | 3173 | * pt-table-checksum: Percona XtraDB Cluster support | ||
865 | 3174 | * pt-table-checksum: Implemented the standard --run-time option | ||
866 | 3175 | * Implemented the version-check feature in several tools, enabled with the --version-check option | ||
867 | 3176 | * Fixed bug 856060: Document gdb dependency | ||
868 | 3177 | * Fixed bug 1041394: Unquoted arguments to tr break the bash tools | ||
869 | 3178 | * Fixed bug 1035311: pt-diskstats shows wrong device names | ||
870 | 3179 | * Fixed bug 1036804: pt-duplicate-key-checker error parsing InnoDB table with no PK or unique keys | ||
871 | 3180 | * Fixed bug 1022658: pt-online-schema-change dropping FK limitation isn't documented | ||
872 | 3181 | * Fixed bug 1041372: pt-online-schema-changes fails if db+tbl name exceeds 64 characters | ||
873 | 3182 | * Fixed bug 1029178: pt-query-digest --type tcpdump memory usage keeps increasing | ||
874 | 3183 | * Fixed bug 1037211: pt-query-digest won't distill LOCK TABLES in lowercase | ||
875 | 3184 | * Fixed bug 942114: pt-stalk warns about bad "find" usage | ||
876 | 3185 | * Fixed bug 1035319: pt-stalk df -h throws away needed details | ||
877 | 3186 | * Fixed bug 1038995: pt-stalk --notify-by-email fails | ||
878 | 3187 | * Fixed bug 1038995: pt-stalk does not get all InnoDB lock data | ||
879 | 3188 | * Fixed bug 952722: pt-summary should show information about Fusion-io cards | ||
880 | 3189 | * Fixed bug 899415: pt-table-checksum doesn't work if slaves use RBR | ||
881 | 3190 | * Fixed bug 954588: pt-table-checksum --check-slave-lag docs aren't clear | ||
882 | 3191 | * Fixed bug 1034170: pt-table-checksum --defaults-file isn't used for slaves | ||
883 | 3192 | * Fixed bug 930693: pt-table-sync and text columns with just whitespace | ||
884 | 3193 | * Fixed bug 1028710: pt-table-sync base_count fails on n = 1000, base = 10 | ||
885 | 3194 | * Fixed bug 1034717: pt-table-sync division by zero error with varchar primary key | ||
886 | 3195 | * Fixed bug 1036747: pt-table-sync priv checks need to be removed | ||
887 | 3196 | * Fixed bug 1039184: pt-upgrade error "I need a right_sth argument" | ||
888 | 3197 | * Fixed bug 1035260: sh warnings in pt-summary and pt-mysql-summary | ||
889 | 3198 | * Fixed bug 1038276: ChangeHandler doesn't quote varchar columns with hex-looking values | ||
890 | 3199 | * Fixed bug 916925: CentOS 5 yum dependency resolution for perl module is wrong | ||
891 | 3200 | * Fixed bug 1035950: Percona Toolkit RPM should contain a dependency on perl-Time-HiRes | ||
892 | 3201 | |||
893 | 3202 | v2.1.3 released 2012-08-03 | ||
894 | 3203 | ========================== | ||
895 | 3204 | |||
896 | 3205 | Percona Toolkit 2.1.3 has been released. This release includes 31 bug fixes and one new feature: pt-kill --log-dsn to log information about killed queries to a table. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
897 | 3206 | |||
898 | 3207 | * Fixed bug 916168: pt-table-checksum privilege check fails on MySQL 5.5 | ||
899 | 3208 | |||
900 | 3209 | pt-table-checksum used to check the user's privileges, but the method was not always reliable, and due to http://bugs.mysql.com/bug.php?id=61846 it became quite unreliable on MySQL 5.5. So the privs check was removed altogether, meaning that the tool may fail later if the user's privileges are insufficient. | ||
901 | 3210 | |||
902 | 3211 | * Fixed bug 950294: pt-table-checksum should always create schema and tables with IF NOT EXISTS | ||
903 | 3212 | |||
904 | 3213 | In certain cases where the master and replicas have different schemas and/or tables, pt-table-checksum could break replication because the checksums table did not exist on a replica. | ||
905 | 3214 | |||
906 | 3215 | * Fixed bug 821703: pt-query-digest --processlist may crash | ||
907 | 3216 | * Fixed bug 883098: pt-query-digest crashes if processlist has extra columns | ||
908 | 3217 | |||
909 | 3218 | Certain distributions of MySQL add extra columns to SHOW PROCESSLIST which caused pt-query-digest --processlist to crash at times. | ||
910 | 3219 | |||
911 | 3220 | * Fixed bug 941469: pt-kill doesn't reconnect if its connection is lost | ||
912 | 3221 | |||
913 | 3222 | pt-kill is meant to be a long-running daemon, so naturally it's important that it stays connected to MySQL. | ||
914 | 3223 | |||
915 | 3224 | * Fixed bug 1004567: pt-heartbeat --update --replace causes duplicate key error | ||
916 | 3225 | |||
917 | 3226 | The combination of these pt-heartbeat options could cause replication to break due to a duplicate key error. | ||
918 | 3227 | |||
919 | 3228 | * Fixed bug 1022628: pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519 | ||
920 | 3229 | |||
921 | 3230 | This bug was related to how --quiet was handled, and it could happen even if --quiet wasn't given on the command line. | ||
922 | 3231 | |||
923 | 3232 | All in all, this is solid bug fix release, and 2.1 users are encouraged to upgrade. | ||
924 | 3233 | |||
925 | 3234 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
926 | 3235 | |||
927 | 3236 | Changelog | ||
928 | 3237 | --------- | ||
929 | 3238 | |||
930 | 3239 | * pt-kill: Implemented --log-dsn to log info about killed queries to a table | ||
931 | 3240 | * Fixed bug 1016127: Install hint for DBD::mysql is wrong | ||
932 | 3241 | * Fixed bug 984915: DSNParser does not check success of --set-vars | ||
933 | 3242 | * Fixed bug 889739: pt-config-diff doesn't diff quoted strings properly | ||
934 | 3243 | * Fixed bug 969669: pt-duplicate-key-checker --key-types=k doesn't work | ||
935 | 3244 | * Fixed bug 1004567: pt-heartbeat --update --replace causes duplicate key error | ||
936 | 3245 | * Fixed bug 1028614: pt-index-usage ignores --database | ||
937 | 3246 | * Fixed bug 940733: pt-ioprofile leaves behind temp directory | ||
938 | 3247 | * Fixed bug 941469: pt-kill doesn't reconnect if its connection is lost | ||
939 | 3248 | * Fixed bug 1016114: pt-online-schema-change docs don't mention default values | ||
940 | 3249 | * Fixed bug 1020997: pt-online-schema-change fails when table is empty | ||
941 | 3250 | * Fixed bug 1022628: pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519 | ||
942 | 3251 | * Fixed bug 937225: pt-query-advisor OUTER JOIN advice in JOI.003 is confusing | ||
943 | 3252 | * Fixed bug 821703: pt-query-digest --processlist may crash | ||
944 | 3253 | * Fixed bug 883098: pt-query-digest crashes if processlist has extra columns | ||
945 | 3254 | * Fixed bug 924950: pt-query-digest --group-by db may crash profile report | ||
946 | 3255 | * Fixed bug 1022851: pt-sift error: PREFIX: unbound variable | ||
947 | 3256 | * Fixed bug 969703: pt-sift defaults to '.' instead of '/var/lib/pt-talk' | ||
948 | 3257 | * Fixed bug 962330: pt-slave-delay incorrectly computes lag if started when slave is already lagging | ||
949 | 3258 | * Fixed bug 954990: pt-stalk --nostalk does not work | ||
950 | 3259 | * Fixed bug 977226: pt-summary doesn't detect LSI RAID control | ||
951 | 3260 | * Fixed bug 1030031: pt-table-checksum reports wrong number of DIFFS | ||
952 | 3261 | * Fixed bug 916168: pt-table-checksum privilege check fails on MySQL 5.5 | ||
953 | 3262 | * Fixed bug 950294: pt-table-checksum should always create schema and tables with IF NOT EXISTS | ||
954 | 3263 | * Fixed bug 953141: pt-table-checksum ignores its default and explicit --recursion-method | ||
955 | 3264 | * Fixed bug 1030975: pt-table-sync crashes if sql_mode includes ANSI_QUOTES | ||
956 | 3265 | * Fixed bug 869005: pt-table-sync should always set REPEATABLE READ | ||
957 | 3266 | * Fixed bug 903510: pt-tcp-model crashes in --type=requests mode on empty file | ||
958 | 3267 | * Fixed bug 934310: pt-tcp-model --quantile docs wrong | ||
959 | 3268 | * Fixed bug 980318: pt-upgrade results truncated if hostnames are long | ||
960 | 3269 | * Fixed bug 821696: pt-variable-advisor shows too long of a snippet | ||
961 | 3270 | * Fixed bug 844880: pt-variable-advisor shows binary logging as both enabled and disabled | ||
962 | 3271 | |||
963 | 3272 | v2.1.2 released 2012-06-12 | ||
964 | 3273 | ========================== | ||
965 | 3274 | |||
966 | 3275 | Percona Toolkit 2.1.2 has been released. This is a very important release because it fixes a critical bug in pt-table-sync (bug 1003014) which caused various failures. All users of Percona Toolkit 2.1 should upgrade to this release. There were 47 other bug fixes, several new options, and other changes. The following is a high-level summary of the most important changes. | ||
967 | 3276 | |||
968 | 3277 | In addition to the critical bug fix mentioned above, another important pt-table-sync bug was fixed, bug 1002365: --ignore-* options did not work with --replicate. The --lock-and-rename feature of the tool was also disabled unless running MySQL 5.5 or newer because it did not work reliably in earlier versions of MySQL. | ||
969 | 3278 | |||
970 | 3279 | Several important pt-table-checksum bugs were fixed. First, a bug caused the tool to ignore the primary key. Second, the tool did not wait for the checksum table to replicate, so it could select from a nonexistent table on a replica and crash. Third, it did not check if all checksum queries were safe and chunk index with more than 3 columns could cause MySQL to scan many more rows than expected. | ||
971 | 3280 | |||
972 | 3281 | pt-online-schema-change received many improvements and fixes: it did not retry deadlocks, but now it does; --no-swap-tables caused an error; it did not handle column renames; it did not allow disabling foreign key checks; --dry-run always failed on tables with foreign keys; it used different keys for chunking and triggers; etc. In short: pt-online-schema-change 2.1.2 is superior to 2.1.1. | ||
973 | 3282 | |||
974 | 3283 | Two pt-archiver bugs were fixed: bug 979092, --sleep conflicts with bulk operations; and bug 903379, --file doesn't create a file. | ||
975 | 3284 | |||
976 | 3285 | --recursion-method=none was implemented in pt-heartbeat, pt-online-schema-change, pt-slave-find, pt-slave-restart, pt-table-checksum, and pt-table-sync. This allows these tools to avoid executing SHOW SLAVE STATUS which requires a privilege not available to Amazon RDS users. | ||
977 | 3286 | |||
978 | 3287 | Other bugs were fixed in pt-stalk, pt-variable-advisor, pt-duplicate-key-checker, pt-diskstats, pt-query-digest, pt-sift, pt-kill, pt-summary, and pt-deadlock-logger. | ||
979 | 3288 | |||
980 | 3289 | Percona Toolkit 2.1.2 should be backwards-compatible with 2.1.1, so users are strongly encouraged to upgrade. | ||
981 | 3290 | |||
982 | 3291 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
983 | 3292 | |||
984 | 3293 | Changelog | ||
985 | 3294 | --------- | ||
986 | 3295 | |||
987 | 3296 | * pt-heartbeat: Implemented --recursion-method=none | ||
988 | 3297 | * pt-index-usage: MySQL 5.5 compatibility fixes | ||
989 | 3298 | * pt-log-player: MySQL 5.5 compatibility fixes | ||
990 | 3299 | * pt-online-schema-change: Added --chunk-index-columns | ||
991 | 3300 | * pt-online-schema-change: Added --[no]check-plan | ||
992 | 3301 | * pt-online-schema-change: Added --[no]drop-new-table | ||
993 | 3302 | * pt-online-schema-change: Implemented --recursion-method=none | ||
994 | 3303 | * pt-query-advisor: Added --report-type for JSON output | ||
995 | 3304 | * pt-query-digest: Removed --[no]zero-bool | ||
996 | 3305 | * pt-slave-delay: Added --database | ||
997 | 3306 | * pt-slave-find: Implemented --recursion-method=none | ||
998 | 3307 | * pt-slave-restart: Implemented --recursion-method=none | ||
999 | 3308 | * pt-table-checksum: Added --chunk-index-columns | ||
1000 | 3309 | * pt-table-checksum: Added --[no]check-plan | ||
1001 | 3310 | * pt-table-checksum: Implemented --recursion-method=none | ||
1002 | 3311 | * pt-table-sync: Disabled --lock-and-rename except for MySQL 5.5 and newer | ||
1003 | 3312 | * pt-table-sync: Implemented --recursion-method=none | ||
1004 | 3313 | * Fixed bug 945079: Shell tools TMPDIR may break | ||
1005 | 3314 | * Fixed bug 912902: Some shell tools still use basename | ||
1006 | 3315 | * Fixed bug 987694: There is no --recursion-method=none option | ||
1007 | 3316 | * Fixed bug 886077: Passwords with commas don't work, expose part of password | ||
1008 | 3317 | * Fixed bug 856024: Lintian warnings when building percona-toolkit Debian package | ||
1009 | 3318 | * Fixed bug 903379: pt-archiver --file doesn't create a file | ||
1010 | 3319 | * Fixed bug 979092: pt-archiver --sleep conflicts with bulk operations | ||
1011 | 3320 | * Fixed bug 903443: pt-deadlock-logger crashes on MySQL 5.5 | ||
1012 | 3321 | * Fixed bug 941064: pt-deadlock-logger can't clear deadlocks on 5.5 | ||
1013 | 3322 | * Fixed bug 952727: pt-diskstats shows incorrect wr_mb_s | ||
1014 | 3323 | * Fixed bug 994176: pt-diskstats --group-by=all --headers=scroll prints a header for every sample | ||
1015 | 3324 | * Fixed bug 894140: pt-duplicate-key-checker sometimes recreates a key it shouldn't | ||
1016 | 3325 | * Fixed bug 923896: pt-kill: uninitialized value causes script to exit | ||
1017 | 3326 | * Fixed bug 1003003: pt-online-schema-change uses different keys for chunking and triggers | ||
1018 | 3327 | * Fixed bug 1003315: pt-online-schema-change --dry-run always fails on table with foreign keys | ||
1019 | 3328 | * Fixed bug 1004551: pt-online-schema-change --no-swap-tables causes error | ||
1020 | 3329 | * Fixed bug 976108: pt-online-schema-change doesn't allow to disable foreign key checks | ||
1021 | 3330 | * Fixed bug 976109: pt-online-schema-change doesn't handle column renames | ||
1022 | 3331 | * Fixed bug 988036: pt-online-schema-change causes deadlocks under heavy write load | ||
1023 | 3332 | * Fixed bug 989227: pt-online-schema-change crashes with PTDEBUG | ||
1024 | 3333 | * Fixed bug 994002: pt-online-schema-change 2.1.1 doesn't choose the PRIMARY KEY | ||
1025 | 3334 | * Fixed bug 994010: pt-online-schema-change 2.1.1 crashes without InnoDB | ||
1026 | 3335 | * Fixed bug 996915: pt-online-schema-change crashes with invalid --max-load and --critical-load | ||
1027 | 3336 | * Fixed bug 998831: pt-online-schema-change -- Should have an option to NOT drop tables on failure | ||
1028 | 3337 | * Fixed bug 1002448: pt-online-schema-change: typo for finding usable indexes | ||
1029 | 3338 | * Fixed bug 885382: pt-query-digest --embedded-attributes doesn't check cardinality | ||
1030 | 3339 | * Fixed bug 888114: pt-query-digest report crashes with infinite loop | ||
1031 | 3340 | * Fixed bug 949630: pt-query-digest mentions a Subversion repository | ||
1032 | 3341 | * Fixed bug 844034: pt-show-grants --separate fails with proxy user | ||
1033 | 3342 | * Fixed bug 946707: pt-sift loses STDIN after pt-diskstats | ||
1034 | 3343 | * Fixed bug 994947: pt-stalk doesn't reset cycles_true after collection | ||
1035 | 3344 | * Fixed bug 986151: pt-stalk-has mktemp error | ||
1036 | 3345 | * Fixed bug 993436: pt-summary Memory: Total reports M instead of G | ||
1037 | 3346 | * Fixed bug 1008778: pt-table-checksum doesn't wait for checksum table to replicate | ||
1038 | 3347 | * Fixed bug 1010232: pt-table-checksum doesn't check the size of checksum chunks | ||
1039 | 3348 | * Fixed bug 1011738: pt-table-checksum SKIPPED is zero but chunks were skipped | ||
1040 | 3349 | * Fixed bug 919499: pt-table-checksum fails with binary log error in mysql >= 5.5.18 | ||
1041 | 3350 | * Fixed bug 972399: pt-table-checksum docs are not rendered right | ||
1042 | 3351 | * Fixed bug 978432: pt-table-checksum ignoring primary key | ||
1043 | 3352 | * Fixed bug 995274: pt-table-checksum can't use an undefined value as an ARRAY reference at line 2206 | ||
1044 | 3353 | * Fixed bug 996110: pt-table-checksum crashes if InnoDB is disabled | ||
1045 | 3354 | * Fixed bug 987393: pt-table-checksum: Empy tables cause "undefined value as an ARRAY" errors | ||
1046 | 3355 | * Fixed bug 1002365: pt-table-sync --ignore-* options don't work with --replicate | ||
1047 | 3356 | * Fixed bug 1003014: pt-table-sync --replicate and --sync-to-master error "index does not exist" | ||
1048 | 3357 | * Fixed bug 823403: pt-table-sync --lock-and-rename doesn't work on 5.1 | ||
1049 | 3358 | * Fixed bug 898138: pt-variable-advisor doesn't recognize 5.5.3+ concurrent_insert values | ||
1050 | 3359 | |||
1051 | 3360 | v2.1.1 released 2012-04-03 | ||
1052 | 3361 | ========================== | ||
1053 | 3362 | |||
1054 | 3363 | Percona Toolkit 2.1.1 has been released. This is the first release in the | ||
1055 | 3364 | new 2.1 series which supersedes the 2.0 series. We will continue to fix bugs | ||
1056 | 3365 | in 2.0, but 2.1 is now the focus of development. | ||
1057 | 3366 | |||
1058 | 3367 | 2.1 introduces a lot of new code for: | ||
1059 | 3368 | |||
1060 | 3369 | * pt-online-schema-change (completely redesigned) | ||
1061 | 3370 | * pt-mysql-summary (completely redesigned) | ||
1062 | 3371 | * pt-summary (completely redesigned) | ||
1063 | 3372 | * pt-fingerprint (new tool) | ||
1064 | 3373 | * pt-table-usage (new tool) | ||
1065 | 3374 | |||
1066 | 3375 | There were also several bug fixes. | ||
1067 | 3376 | |||
1068 | 3377 | The redesigned tools are meant to replace their 2.0 counterparts because | ||
1069 | 3378 | the 2.1 versions have the same or more functionality and they are simpler | ||
1070 | 3379 | and more reliable. pt-online-schema-change was particularly enhanced to | ||
1071 | 3380 | be as safe as possible given that the tool is inherently risky. | ||
1072 | 3381 | |||
1073 | 3382 | Percona Toolkit packages can be downloaded from | ||
1074 | 3383 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1075 | 3384 | Repositories (http://www.percona.com/software/repositories/). | ||
1076 | 3385 | |||
1077 | 3386 | Changelog | ||
1078 | 3387 | --------- | ||
1079 | 3388 | |||
1080 | 3389 | * Completely redesigned pt-online-schema-change | ||
1081 | 3390 | * Completely redesigned pt-mysql-summary | ||
1082 | 3391 | * Completely redesigned pt-summary | ||
1083 | 3392 | * Added new tool: pt-table-usage | ||
1084 | 3393 | * Added new tool: pt-fingerprint | ||
1085 | 3394 | * Fixed bug 955860: pt-stalk doesn't run vmstat, iostat, and mpstat for --run-time | ||
1086 | 3395 | * Fixed bug 960513: SHOW TABLE STATUS is used needlessly | ||
1087 | 3396 | * Fixed bug 969726: pt-online-schema-change loses foreign keys | ||
1088 | 3397 | * Fixed bug 846028: pt-online-schema-change does not show progress until completed | ||
1089 | 3398 | * Fixed bug 898695: pt-online-schema-change add useless ORDER BY | ||
1090 | 3399 | * Fixed bug 952727: pt-diskstats shows incorrect wr_mb_s | ||
1091 | 3400 | * Fixed bug 963225: pt-query-digest fails to set history columns for disk tmp tables and disk filesort | ||
1092 | 3401 | * Fixed bug 967451: Char chunking doesn't quote column name | ||
1093 | 3402 | * Fixed bug 972399: pt-table-checksum docs are not rendered right | ||
1094 | 3403 | * Fixed bug 896553: Various documentation spelling fixes | ||
1095 | 3404 | * Fixed bug 949154: pt-variable-advisor advice for relay-log-space-limit | ||
1096 | 3405 | * Fixed bug 953461: pt-upgrade manual broken 'output' section | ||
1097 | 3406 | * Fixed bug 949653: pt-table-checksum docs don't mention risks posed by inconsistent schemas | ||
1098 | 3407 | |||
1099 | 3408 | v2.0.4 released 2012-03-07 | ||
1100 | 3409 | ========================== | ||
1101 | 3410 | |||
1102 | 3411 | Percona Toolkit 2.0.4 has been released. 23 bugs were fixed in this release, | ||
1103 | 3412 | and three new features were implemented. First, --filter was added to pt-kill | ||
1104 | 3413 | which allows for arbitrary --group-by. Second, pt-online-schema-change now | ||
1105 | 3414 | requires that its new --execute option be given, else the tool will just check | ||
1106 | 3415 | the tables and exit. This is a safeguard to encourage users to read the | ||
1107 | 3416 | documentation, particularly when replication is involved. Third, pt-stalk | ||
1108 | 3417 | also received a new option: --[no]stalk. To collect immediately without | ||
1109 | 3418 | stalking, specify --no-stalk and the tool will collect once and exit. | ||
1110 | 3419 | |||
1111 | 3420 | This release is completely backwards compatible with previous 2.0 releases. | ||
1112 | 3421 | Given the number of bug fixes, it's worth upgrading to 2.0.4. | ||
1113 | 3422 | |||
1114 | 3423 | Changelog | ||
1115 | 3424 | --------- | ||
1116 | 3425 | |||
1117 | 3426 | * Added --filter to pt-kill to allow arbitrary --group-by | ||
1118 | 3427 | * Added --[no]stalk to pt-stalk (bug 932331) | ||
1119 | 3428 | * Added --execute to pt-online-schema-change (bug 933232) | ||
1120 | 3429 | * Fixed bug 873598: pt-online-schema-change doesn't like reserved words in column names | ||
1121 | 3430 | * Fixed bug 928966: pt-pmp still uses insecure /tmp | ||
1122 | 3431 | * Fixed bug 933232: pt-online-schema-change can break replication | ||
1123 | 3432 | * Fixed bug 941225: Use of qw(...) as parentheses is deprecated at pt-kill line 3511 | ||
1124 | 3433 | * Fixed bug 821694: pt-query-digest doesn't recognize hex InnoDB txn IDs | ||
1125 | 3434 | * Fixed bug 894255: pt-kill shouldn't check if STDIN is a tty when --daemonize is given | ||
1126 | 3435 | * Fixed bug 916999: pt-table-checksum error: DBD::mysql::st execute failed: called with 2 bind variables when 6 are needed | ||
1127 | 3436 | * Fixed bug 926598: DBD::mysql bug causes pt-upgrade to use wrong precision (M) and scale (D) | ||
1128 | 3437 | * Fixed bug 928226: pt-diskstats illegal division by zero | ||
1129 | 3438 | * Fixed bug 928415: Typo in pt-stalk doc: --trigger should be --function | ||
1130 | 3439 | * Fixed bug 930317: pt-archiver doc refers to nonexistent pt-query-profiler | ||
1131 | 3440 | * Fixed bug 930533: pt-sift looking for *-processlist1; broken compatibility with pt-stalk | ||
1132 | 3441 | * Fixed bug 932331: pt-stalk cannot collect without stalking | ||
1133 | 3442 | * Fixed bug 932442: pt-table-checksum error when column name has two spaces | ||
1134 | 3443 | * Fixed bug 932883: File Debian bug after each release | ||
1135 | 3444 | * Fixed bug 940503: pt-stalk disk space checks wrong on 32bit platforms | ||
1136 | 3445 | * Fixed bug 944420: --daemonize doesn't always close STDIN | ||
1137 | 3446 | * Fixed bug 945834: pt-sift invokes pt-diskstats with deprecated argument | ||
1138 | 3447 | * Fixed bug 945836: pt-sift prints awk error if there are no stack traces to aggregate | ||
1139 | 3448 | * Fixed bug 945842: pt-sift generates wrong state sum during processlist analysis | ||
1140 | 3449 | * Fixed bug 946438: pt-query-digest should print a better message when an unsupported log format is specified | ||
1141 | 3450 | * Fixed bug 946776: pt-table-checksum ignores --lock-wait-timeout | ||
1142 | 3451 | * Fixed bug 940440: Bad grammar in pt-kill docs | ||
1143 | 3452 | |||
1144 | 3453 | v2.0.3 released 2012-02-03 | ||
1145 | 3454 | ========================== | ||
1146 | 3455 | |||
1147 | 3456 | Percona Toolkit 2.0.3 has been released. The development team was very | ||
1148 | 3457 | busy last month making this release significant: two completely | ||
1149 | 3458 | redesigned and improved tools, pt-diskstats and pt-stalk, and 20 bug fixes. | ||
1150 | 3459 | |||
1151 | 3460 | Both pt-diskstats and pt-stalk were redesigned and rewritten from the ground | ||
1152 | 3461 | up. This allowed us to greatly improve these tools' functionality and | ||
1153 | 3462 | increase testing for them. The accuracy and output of pt-diskstats was | ||
1154 | 3463 | enhanced, and the tool was rewritten in Perl. pt-collect was removed and | ||
1155 | 3464 | its functionality was put into a new, enhanced pt-stalk. pt-stalk is now | ||
1156 | 3465 | designed to be a stable, long-running daemon on a variety of common platforms. | ||
1157 | 3466 | It is worth re-reading the documentation for each of these tools. | ||
1158 | 3467 | |||
1159 | 3468 | The 20 bug fixes cover a wide range of problems. The most important are | ||
1160 | 3469 | fixes to pt-table-checksum, pt-iostats, and pt-kill. Apart from pt-diskstats, | ||
1161 | 3470 | pt-stalk, and pt-collect (which was removed), no other tools were changed | ||
1162 | 3471 | in backwards-incompatible ways, so it is worth reviewing the full changelog | ||
1163 | 3472 | for this release and upgrading if you use any tools which had bug fixes. | ||
1164 | 3473 | |||
1165 | 3474 | Thank you to the many people who reported bugs and submitted patches. | ||
1166 | 3475 | |||
1167 | 3476 | Download the latest release of Percona Toolkit 2.0 from | ||
1168 | 3477 | http://www.percona.com/software/percona-toolkit/ | ||
1169 | 3478 | or the Percona Software Repositories | ||
1170 | 3479 | (http://www.percona.com/docs/wiki/repositories:start). | ||
1171 | 3480 | |||
1172 | 3481 | Changelog | ||
1173 | 3482 | --------- | ||
1174 | 3483 | |||
1175 | 3484 | * Completely redesigned pt-diskstats | ||
1176 | 3485 | * Completely redesigned pt-stalk | ||
1177 | 3486 | * Removed pt-collect and put its functionality in pt-stalk | ||
1178 | 3487 | * Fixed bug 871438: Bash tools are insecure | ||
1179 | 3488 | * Fixed bug 897758: Failed to prepare TableSyncChunk plugin: Use of uninitialized value $args{"chunk_range"} in lc at pt-table-sync line 3055 | ||
1180 | 3489 | * Fixed bug 919819: pt-kill --execute-command creates zombies | ||
1181 | 3490 | * Fixed bug 925778: pt-ioprofile doesn't run without a file | ||
1182 | 3491 | * Fixed bug 925477: pt-ioprofile docs refer to pt-iostats | ||
1183 | 3492 | * Fixed bug 857091: pt-sift downloads http://percona.com/get/pt-pmp, which does not work | ||
1184 | 3493 | * Fixed bug 857104: pt-sift tries to invoke mext, should be pt-mext | ||
1185 | 3494 | * Fixed bug 872699: pt-diskstats: rd_avkb & wr_avkb derived incorrectly | ||
1186 | 3495 | * Fixed bug 897029: pt-diskstats computes wrong values for md0 | ||
1187 | 3496 | * Fixed bug 882918: pt-stalk spams warning if oprofile isn't installed | ||
1188 | 3497 | * Fixed bug 884504: pt-stalk doesn't check pt-collect | ||
1189 | 3498 | * Fixed bug 897483: pt-online-schema-change "uninitialized value" due to update-foreign-keys-method | ||
1190 | 3499 | * Fixed bug 925007: pt-online-schema-change Use of uninitialized value $tables{"old_table"} in concatenation (.) or string at line 4330 | ||
1191 | 3500 | * Fixed bug 915598: pt-config-diff ignores --ask-pass option | ||
1192 | 3501 | * Fixed bug 919352: pt-table-checksum changes binlog_format even if already set to statement | ||
1193 | 3502 | * Fixed bug 921700: pt-table-checksum doesn't add --where to chunk size test on replicas | ||
1194 | 3503 | * Fixed bug 921802: pt-table-checksum does not recognize --recursion-method=processlist | ||
1195 | 3504 | * Fixed bug 925855: pt-table-checksum index check is case-sensitive | ||
1196 | 3505 | * Fixed bug 821709: pt-show-grants --revoke and --separate don't work together | ||
1197 | 3506 | * Fixed bug 918247: Some tools use VALUE instead of VALUES | ||
1198 | 3507 | |||
1199 | 3508 | v2.0.2 released 2012-01-05 | ||
1200 | 3509 | ========================== | ||
1201 | 3510 | |||
1202 | 3511 | Percona Toolkit 2.0.2 fixes one critical bug: pt-table-sync --replicate | ||
1203 | 3512 | did not work with character values, causing an "Unknown column" error. | ||
1204 | 3513 | If using Percona Toolkit 2.0.1, you should upgrade to 2.0.2. | ||
1205 | 3514 | |||
1206 | 3515 | Download the latest release of Percona Toolkit 2.0 from | ||
1207 | 3516 | http://www.percona.com/software/percona-toolkit/ | ||
1208 | 3517 | or the Percona Software Repositories | ||
1209 | 3518 | (http://www.percona.com/docs/wiki/repositories:start). | ||
1210 | 3519 | |||
1211 | 3520 | Changelog | ||
1212 | 3521 | --------- | ||
1213 | 3522 | |||
1214 | 3523 | * Fixed bug 911996: pt-table-sync --replicate causes "Unknown column" error | ||
1215 | 3524 | |||
1216 | 3525 | v2.0.1 released 2011-12-30 | ||
1217 | 3526 | ========================== | ||
1218 | 3527 | |||
1219 | 3528 | The Percona Toolkit development team is proud to announce a new major version: | ||
1220 | 3529 | 2.0. Beginning with Percona Toolkit 2.0, we are overhauling, redesigning, and | ||
1221 | 3530 | improving the major tools. 2.0 tools are therefore not backwards compatible | ||
1222 | 3531 | with 1.0 tools, which we still support but will not continue to develop. | ||
1223 | 3532 | |||
1224 | 3533 | New in Percona Toolkit 2.0.1 is a completely redesigned pt-table-checksum. | ||
1225 | 3534 | The original pt-table-checksum 1.0 was rather complex, but it worked well | ||
1226 | 3535 | for many years. By contrast, the new pt-table-checksum 2.0 is much simpler but | ||
1227 | 3536 | also much more efficient and reliable. We spent months rethinking, redesigning, | ||
1228 | 3537 | and testing every aspect of the tool. The three most significant changes: | ||
1229 | 3538 | pt-table-checksum 2.0 does only --replicate, it has only one chunking algorithm, | ||
1230 | 3539 | and its memory usage is stable even with hundreds of thousands of tables and | ||
1231 | 3540 | trillions of rows. The tool is now dedicated to verifying MySQL replication | ||
1232 | 3541 | integrity, nothing else, which it does extremely well. | ||
1233 | 3542 | |||
1234 | 3543 | In Percona Toolkit 2.0.1 we also fixed various small bugs and forked ioprofile | ||
1235 | 3544 | and align (as pt-ioprofile and pt-align) from Aspersa. | ||
1236 | 3545 | |||
1237 | 3546 | If you still need functionalities in the original pt-table-checksum, | ||
1238 | 3547 | the latest Percona Toolkit 1.0 release remains available for download. | ||
1239 | 3548 | Otherwise, all new development in Percona Toolkit will happen in 2.0. | ||
1240 | 3549 | |||
1241 | 3550 | Download the latest release of Percona Toolkit 2.0 from | ||
1242 | 3551 | http://www.percona.com/software/percona-toolkit/ | ||
1243 | 3552 | or the Percona Software Repositories | ||
1244 | 3553 | (http://www.percona.com/docs/wiki/repositories:start). | ||
1245 | 3554 | |||
1246 | 3555 | Changelog | ||
1247 | 3556 | --------- | ||
1248 | 3557 | |||
1249 | 3558 | * Completely redesigned pt-table-checksum | ||
1250 | 3559 | * Fixed bug 856065: pt-trend does not work | ||
1251 | 3560 | * Fixed bug 887688: Prepared statements crash pt-query-digest | ||
1252 | 3561 | * Fixed bug 888286: align not part of percona-toolkit | ||
1253 | 3562 | * Fixed bug 897961: ptc 2.0 replicate-check error does not include hostname | ||
1254 | 3563 | * Fixed bug 898318: ptc 2.0 --resume with --tables does not always work | ||
1255 | 3564 | * Fixed bug 903513: MKDEBUG should be PTDEBUG | ||
1256 | 3565 | * Fixed bug 908256: Percona Toolkit should include pt-ioprofile | ||
1257 | 3566 | * Fixed bug 821717: pt-tcp-model --type=requests crashes | ||
1258 | 3567 | * Fixed bug 844038: pt-online-schema-change documentation example w/drop-tmp-table does not work | ||
1259 | 3568 | * Fixed bug 864205: Remove the query to reset @crc from pt-table-checksum | ||
1260 | 3569 | * Fixed bug 898663: Typo in pt-log-player documentation | ||
1261 | 3570 | |||
1262 | 3571 | v1.0.1 released 2011-09-01 | ||
1263 | 3572 | ========================== | ||
1264 | 3573 | |||
1265 | 3574 | Percona Toolkit 1.0.1 has been released. In July, Baron announced planned | ||
1266 | 3575 | changes to Maatkit and Aspersa development;[1] Percona Toolkit is the | ||
1267 | 3576 | result. In brief, Percona Toolkit is the combined fork of Maatkit and | ||
1268 | 3577 | Aspersa, so although the toolkit is new, the programs are not. That means | ||
1269 | 3578 | Percona Toolkit 1.0.1 is mature, stable, and production-ready. In fact, | ||
1270 | 3579 | it's even a little more stable because we fixed a few bugs in this release. | ||
1271 | 3580 | |||
1272 | 3581 | Percona Toolkit packages can be downloaded from | ||
1273 | 3582 | http://www.percona.com/downloads/percona-toolkit/ | ||
1274 | 3583 | or the Percona Software Repositories | ||
1275 | 3584 | (http://www.percona.com/docs/wiki/repositories:start). | ||
1276 | 3585 | |||
1277 | 3586 | Although Maatkit and Aspersa development use Google Code, Percona Toolkit | ||
1278 | 3587 | uses Launchpad: https://launchpad.net/percona-toolkit | ||
1279 | 3588 | |||
1280 | 3589 | [1] http://www.xaprb.com/blog/2011/07/06/planned-change-in-maatkit-aspersa-development/ | ||
1281 | 3590 | |||
1282 | 3591 | Changelog | ||
1283 | 3592 | --------- | ||
1284 | 3593 | |||
1285 | 3594 | * Fixed bug 819421: MasterSlave::is_replication_thread() doesn't match all | ||
1286 | 3595 | * Fixed bug 821673: pt-table-checksum doesn't include --where in min max queries | ||
1287 | 3596 | * Fixed bug 821688: pt-table-checksum SELECT MIN MAX for char chunking is wrong | ||
1288 | 3597 | * Fixed bug 838211: pt-collect: line 24: [: : integer expression expected | ||
1289 | 3598 | * Fixed bug 838248: pt-collect creates a "5.1" file | ||
1290 | 3599 | |||
1291 | 3600 | v0.9.5 released 2011-08-04 | ||
1292 | 3601 | ========================== | ||
1293 | 3602 | |||
1294 | 3603 | Percona Toolkit 0.9.5 represents the completed transition from Maatkit and Aspersa. There are no bug fixes or new features, but some features have been removed (like --save-results from pt-query-digest). This release is the starting point for the 1.0 series where new development will happen, and no more changes will be made to the 0.9 series. | ||
1295 | 3604 | |||
1296 | 3605 | Changelog | ||
1297 | 3606 | --------- | ||
1298 | 3607 | |||
1299 | 3608 | * Forked, combined, and rebranded Maatkit and Aspersa as Percona Toolkit. | ||
1300 | 3609 | |||
1301 | 3610 | Changelog | ||
1302 | 3611 | --------- | ||
1303 | 3612 | |||
1304 | 3613 | * Fixed bug 1279502: --version-check behaves like spyware | ||
1305 | 3614 | |||
1306 | 3615 | ======= | ||
1307 | 3616 | >>>>>>> MERGE-SOURCE | ||
1308 | 3617 | v2.2.6 released 2013-12-18 | ||
1309 | 3618 | ========================== | ||
1310 | 3619 | |||
1311 | 3620 | Percona Toolkit 2.2.6 has been released. This release has 16 bug fixes and a few new features. One bug fix is very important, so 2.2 users are strongly encouraged to upgrade: | ||
1312 | 3621 | |||
1313 | 3622 | * Fixed bug 1223458: pt-table-sync deletes child table rows | ||
1314 | 3623 | |||
1315 | 3624 | Buried in the pt-table-sync docs is this warning: | ||
1316 | 3625 | |||
1317 | 3626 | Also be careful with tables that have foreign key constraints with C<ON DELETE> | ||
1318 | 3627 | or C<ON UPDATE> definitions because these might cause unintended changes on the | ||
1319 | 3628 | child tables. | ||
1320 | 3629 | |||
1321 | 3630 | Until recently, either no one had this problem, or no one reported it, or no one realized that pt-table-sync caused it. In the worst case, pt-table-sync could delete all rows in child tables, which is quite surprising and bad. As of 2.2.6, pt-table-sync has option --[no]check-child-tables which is on by default. In cases were this "bug" can happen, pt-table-sync prints a warning and skips the table. Read the option's docs to learn more. | ||
1322 | 3631 | |||
1323 | 3632 | Another good bug fix is: | ||
1324 | 3633 | |||
1325 | 3634 | * Fixed bug 1217013: pt-duplicate-key-checker misses exact duplicate unique indexes | ||
1326 | 3635 | |||
1327 | 3636 | After saying "pt-duplicate-key-checker hasn't had a bug in years" at enough conferences, users proved us wrong--thanks! The tool is better now. | ||
1328 | 3637 | |||
1329 | 3638 | * Fixed bug 1195628: pt-online-schema-change gets stuck looking for its own _new table | ||
1330 | 3639 | |||
1331 | 3640 | This was poor feedback from the tool more than a bug. There was a point in the tool where it waited forever for slaves to catch up, but it did this silently. Now the tool reports --progress while it's waiting and it reports which slaves, if any, it found and intends to check. In short: its feedback delivers a better user experience. | ||
1332 | 3641 | |||
1333 | 3642 | Finally, this bug (more like a feature request/change) might be a backwards-incompatible change: | ||
1334 | 3643 | |||
1335 | 3644 | * Fixed bug 1214685: pt-mysql-summary schema dump prompt can't be disabled | ||
1336 | 3645 | |||
1337 | 3646 | The change is that pt-mysql-summary no longer prompts to dump and summarize schemas. To do this, you must specify --databases or, a new option, --all-databases. Several users said this behavior was better, so we made the change even though some might consider it a backwards-incompatible change. | ||
1338 | 3647 | |||
1339 | 3648 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
1340 | 3649 | |||
1341 | 3650 | Changelog | ||
1342 | 3651 | --------- | ||
1343 | 3652 | |||
1344 | 3653 | * Added pt-query-digest support for Percona Server slow log rate limiting | ||
1345 | 3654 | * Added pt-agent --ping | ||
1346 | 3655 | * Added pt-mysql-summary --all-databases | ||
1347 | 3656 | * Added pt-stalk --sleep-collect | ||
1348 | 3657 | * Added pt-table-sync --[no]check-child-tables | ||
1349 | 3658 | * Fixed bug 1249150: PTDEBUG prints some info to STDOUT | ||
1350 | 3659 | * Fixed bug 1248363: pt-agent requires restart after changing MySQL options | ||
1351 | 3660 | * Fixed bug 1248778: pt-agent --install on PXC is not documented | ||
1352 | 3661 | * Fixed bug 1250973: pt-agent --install doesn't check for previous install | ||
1353 | 3662 | * Fixed bug 1250968: pt-agent --install suggest MySQL user isn't quoted | ||
1354 | 3663 | * Fixed bug 1251004: pt-agent --install error about slave is confusing | ||
1355 | 3664 | * Fixed bug 1251726: pt-agent --uninstall fails if agent is running | ||
1356 | 3665 | * Fixed bug 1248785: pt-agent docs don't list privs required for its MySQL user | ||
1357 | 3666 | * Fixed bug 1215016: pt-deadlock-logger docs use pt-fk-error-logger | ||
1358 | 3667 | * Fixed bug 1201443: pt-duplicate-key-checker error when EXPLAIN key_len=0 | ||
1359 | 3668 | * Fixed bug 1217013: pt-duplicate-key-checker misses exact duplicate unique indexes | ||
1360 | 3669 | * Fixed bug 1214685: pt-mysql-summary schema dump prompt can't be disabled | ||
1361 | 3670 | * Fixed bug 1195628: pt-online-schema-change gets stuck looking for its own _new table | ||
1362 | 3671 | * Fixed bug 1249149: pt-query-digest stats prints to STDOUT instead of STDERR | ||
1363 | 3672 | * Fixed bug 1071979: pt-stak error parsing df with NFS | ||
1364 | 3673 | * Fixed bug 1223458: pt-table-sync deletes child table rows | ||
1365 | 3674 | |||
1366 | 3675 | v2.2.5 released 2013-10-16 | ||
1367 | 3676 | ========================== | ||
1368 | 3677 | |||
1369 | 3678 | Percona Toolkit 2.2.5 has been released. This release has four new features and a number of bugfixes. | ||
1370 | 3679 | |||
1371 | 3680 | Query_time histogram has been added to the pt-query-digest JSON output, not the actual chart but the values necessary to render the chart later, so the values for each bucket. | ||
1372 | 3681 | |||
1373 | 3682 | As of pt-table-checksum 2.2.5, skipped chunks cause a non-zero exit status. An exit status of zero or 32 is equivalent to a zero exit status with skipped chunks in previous versions of the tool. | ||
1374 | 3683 | |||
1375 | 3684 | New --no-drop-triggers option has been implemented for pt-online-schema-change in case users want to rename the tables manually, when the load is low. | ||
1376 | 3685 | |||
1377 | 3686 | New --new-table-name option has been added to pt-online-schema-change which can be used to specify the temporary table name. | ||
1378 | 3687 | |||
1379 | 3688 | * Fixed bug #1199589: pt-archiver would delete the data even with the --dry-run option. | ||
1380 | 3689 | |||
1381 | 3690 | * Fixed bug #821692: pt-query-digest didn't distill LOAD DATA correctly. | ||
1382 | 3691 | |||
1383 | 3692 | * Fixed bug #984053: pt-query-digest didn't distill INSERT/REPLACE without INTO correctly. | ||
1384 | 3693 | |||
1385 | 3694 | * Fixed bug #1206677: pt-agent docs were referencing wrong web address. | ||
1386 | 3695 | |||
1387 | 3696 | * Fixed bug #1210537: pt-table-checksum --recursion-method=cluster would crash if no nodes were found. | ||
1388 | 3697 | |||
1389 | 3698 | Percona Toolkit packages can be downloaded from | ||
1390 | 3699 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1391 | 3700 | Repositories (http://www.percona.com/software/repositories | ||
1392 | 3701 | |||
1393 | 3702 | Changelog | ||
1394 | 3703 | --------- | ||
1395 | 3704 | |||
1396 | 3705 | * Added Query_time histogram bucket counts to pt-query-digest JSON output | ||
1397 | 3706 | * Added pt-online-schema-change --[no]drop-triggers option | ||
1398 | 3707 | * Fixed bug #1199589: pt-archiver deletes data despite --dry-run | ||
1399 | 3708 | * Fixed bug #944051: pt-table-checksum has ambiguous exit status | ||
1400 | 3709 | * Fixed bug #1209436: pt-kill --log-dsn may not work on Perl 5.8 | ||
1401 | 3710 | * Fixed bug #1210537: pt-table-checksum --recursion-method=cluster crashes if no nodes are found | ||
1402 | 3711 | * Fixed bug #1215608: pt-online-schema-change new table suffix is hard-coded | ||
1403 | 3712 | * Fixed bug #1229861: pt-table-sync quotes float values, can't sync | ||
1404 | 3713 | * Fixed bug #821692: pt-query-digest doesn't distill LOAD DATA correctly | ||
1405 | 3714 | * Fixed bug #984053: pt-query-digest doesn't distill INSERT/REPLACE without INTO correctly | ||
1406 | 3715 | * Fixed bug #1206728: pt-deadlock-logger 2.2 requires DSN on command line | ||
1407 | 3716 | * Fixed bug #1226721: pt-agent on CentOS 5 fails to send data | ||
1408 | 3717 | * Fixed bug #821690: pt-query-digest doesn't distill IF EXISTS correctly | ||
1409 | 3718 | * Fixed bug #1206677: pt-agent docs reference clodu.percona.com | ||
1410 | 3719 | |||
1411 | 3720 | v2.2.4 released 2013-07-18 | ||
1412 | 3721 | ========================== | ||
1413 | 3722 | |||
1414 | 3723 | Percona Toolkit 2.2.4 has been released. This release two new features and a number of bugfixes. | ||
1415 | 3724 | |||
1416 | 3725 | pt-query-digest --output json includes query examples as of v2.2.3. Some people might not want this because it exposes real data. New option, --output json-anon, has been implemented. This option will provide the same data without query examples. It's "anonymous" in the sense that there's no identifying data; nothing more than schema and table structs can be inferred from fingerprints. | ||
1417 | 3726 | |||
1418 | 3727 | When using drop swap with pt-online-schema-change there is some production impact. This impact can be measured because tool outputs the current timestamp on lines for operations that may take awhile. | ||
1419 | 3728 | |||
1420 | 3729 | * Fixed bug #1163735: pt-table-checksum fails if explicit_defaults_for_timestamp is enabled in 5.6 | ||
1421 | 3730 | pt-table-checksum would fail if variable explicit_defaults_for_timestamp was enabled in MySQL 5.6. | ||
1422 | 3731 | |||
1423 | 3732 | * Fixed bug #1182856: Zero values causes "Invalid --set-vars value: var=0" | ||
1424 | 3733 | Trying to assign 0 to any variable by using --set-vars option would cause “Invalid --set-vars value” message. | ||
1425 | 3734 | |||
1426 | 3735 | * Fixed bug #1188264: pt-online-schema-change error copying rows: Undefined subroutine &pt_online_schema_change::get | ||
1427 | 3736 | Fixed the typo in the pt-online-schema-change code that could lead to a tool crash when copying the rows. | ||
1428 | 3737 | |||
1429 | 3738 | * Fixed bug #1199591: pt-table-checksum doesn't use non-unique index with highest cardinality | ||
1430 | 3739 | pt-table-checksum was using the first non-unique index instead of the one with the highest cardinality due to a sorting bug. | ||
1431 | 3740 | |||
1432 | 3741 | Percona Toolkit packages can be downloaded from | ||
1433 | 3742 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1434 | 3743 | Repositories (http://www.percona.com/software/repositories | ||
1435 | 3744 | |||
1436 | 3745 | Changelog | ||
1437 | 3746 | --------- | ||
1438 | 3747 | |||
1439 | 3748 | * Added pt-query-digest anonymous JSON output | ||
1440 | 3749 | * Added pt-online-schema-change timestamp output | ||
1441 | 3750 | * Fixed bug #1136559: pt-table-checksum: Deep recursion on subroutine "SchemaIterator::_iterate_dbh" | ||
1442 | 3751 | * Fixed bug #1163735: pt-table-checksum fails if explicit_defaults_for_timestamp is enabled in 5.6 | ||
1443 | 3752 | * Fixed bug #1182856: Zero values causes "Invalid --set-vars value: var=0" | ||
1444 | 3753 | * Fixed bug #1188264: pt-online-schema-change error copying rows: Undefined subroutine &pt_online_schema_change::get | ||
1445 | 3754 | * Fixed bug #1195034: pt-deadlock-logger error: Use of uninitialized value $ts in pattern match (m//) | ||
1446 | 3755 | * Fixed bug #1199591: pt-table-checksum doesn't use non-unique index with highest cardinality | ||
1447 | 3756 | * Fixed bug #1168434: pt-upgrade reports differences on NULL | ||
1448 | 3757 | * Fixed bug #1172317: pt-sift does not work if pt-stalk did not collect due to a full disk | ||
1449 | 3758 | * Fixed bug #1176010: pt-query-digest doesn't group db and `db` together | ||
1450 | 3759 | * Fixed bug #1137556: pt-heartbeat docs don't account for --utc | ||
1451 | 3760 | * Fixed bug #1168106: pt-variable-advisor has the wrong default value for innodb_max_dirty_pages_pct in 5.5 and 5.6 | ||
1452 | 3761 | * Fixed bug #1168110: pt-variable-advisor shows key_buffer_size in 5.6 as unconfigured (even though it is) | ||
1453 | 3762 | * Fixed bug #1171968: pt-query-digest docs don't mention --type=rawlog | ||
1454 | 3763 | * Fixed bug #1174956: pt-query-digest and pt-fingerprint don't strip some multi-line comments | ||
1455 | 3764 | |||
1456 | 3765 | |||
1457 | 3766 | v2.2.3 released 2013-06-17 | ||
1458 | 3767 | ========================== | ||
1459 | 3768 | |||
1460 | 3769 | Percona Toolkit 2.2.3 has been released which has only two changes: pt-agent | ||
1461 | 3770 | and a bug fix for pt-online-schema-change. pt-agent is not a command line | ||
1462 | 3771 | tool but a client-side agent for Percona Cloud Tools. Visit | ||
1463 | 3772 | https://cloud.percona.com for more information. The pt-online-schema-change | ||
1464 | 3773 | bug fix is bug 1188002: pt-online-schema-change causes "ERROR 1146 (42S02): | ||
1465 | 3774 | "Table 'db._t_new' doesn't exist". This happens when the tool's triggers | ||
1466 | 3775 | cannot be dropped. | ||
1467 | 3776 | |||
1468 | 3777 | Percona Toolkit packages can be downloaded from | ||
1469 | 3778 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1470 | 3779 | Repositories (http://www.percona.com/software/repositories/). | ||
1471 | 3780 | |||
1472 | 3781 | Changelog | ||
1473 | 3782 | --------- | ||
1474 | 3783 | |||
1475 | 3784 | * Added new tool: pt-agent | ||
1476 | 3785 | * Fixed bug 1188002: pt-online-schema-change causes "ERROR 1146 (42S02): Table 'db._t_new' doesn't exist" | ||
1477 | 3786 | |||
1478 | 3787 | v2.2.2 released 2013-04-24 | ||
1479 | 3788 | ========================== | ||
1480 | 3789 | |||
1481 | 3790 | Percona Toolkit 2.2.2 has been released. This is the second release of | ||
1482 | 3791 | the 2.2 series and aims to fix bugs in the previous release and provide | ||
1483 | 3792 | usability enhacements to the toolkit. | ||
1484 | 3793 | |||
1485 | 3794 | Users may note the revival of the --show-all option in pt-query-digest. | ||
1486 | 3795 | This had been removed in 2.2.1, but resulted in too much output in | ||
1487 | 3796 | certain cases. | ||
1488 | 3797 | |||
1489 | 3798 | A new --recursion-method was added to pt-table-checksum: cluster. This | ||
1490 | 3799 | method attempts to auto-discover cluster nodes, alleviating the need to | ||
1491 | 3800 | specify cluster node DSNs in a DSN table (--recursion-method=dsn). | ||
1492 | 3801 | |||
1493 | 3802 | The following highlights some of the more interesting and "hot" bugs in | ||
1494 | 3803 | this release: | ||
1495 | 3804 | |||
1496 | 3805 | * Bug #1127450: pt-archiver --bulk-insert may corrupt data | ||
1497 | 3806 | |||
1498 | 3807 | pt-archiver --bulk-insert didn't work with --charset UTF-8. This revealed | ||
1499 | 3808 | a case where the tool could corrupt data by double-encoding. This is now | ||
1500 | 3809 | fixed, but remains relatively dangerous if using DBD::mysql 3.0007 which | ||
1501 | 3810 | does not handle UTF-8 properly. | ||
1502 | 3811 | |||
1503 | 3812 | * Bug #1163372: pt-heartbeat --utc --check always returns 0 | ||
1504 | 3813 | |||
1505 | 3814 | Unfortunately, the relatively new --utc option for pt-heart was still | ||
1506 | 3815 | broken because "[MySQL] interprets date as a value in the current time zone | ||
1507 | 3816 | and converts it to an internal value in UTC." Now the tool works correctly | ||
1508 | 3817 | with --utc by specifying "SET time_zone='+0:00'", and older versions of | ||
1509 | 3818 | the tool can be made to work by specifying --set-vars "time_zone='+0:00'". | ||
1510 | 3819 | |||
1511 | 3820 | * Bug #821502: Some tools don't have --help or --version | ||
1512 | 3821 | |||
1513 | 3822 | pt-align, pt-mext, pt-pmp and pt-sift now have both options. | ||
1514 | 3823 | |||
1515 | 3824 | This is another solid bug fix release, and all users are encouraged to upgrade. | ||
1516 | 3825 | |||
1517 | 3826 | Percona Toolkit packages can be downloaded from | ||
1518 | 3827 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1519 | 3828 | Repositories (http://www.percona.com/software/repositories/). | ||
1520 | 3829 | |||
1521 | 3830 | Changelog | ||
1522 | 3831 | --------- | ||
1523 | 3832 | |||
1524 | 3833 | * Added --show-all to pt-query-digest | ||
1525 | 3834 | * Added --recursion-method=cluster to pt-table-checksum | ||
1526 | 3835 | * Fixed bug 1127450: pt-archiver --bulk-insert may corrupt data | ||
1527 | 3836 | * Fixed bug 1163372: pt-heartbeat --utc --check always returns 0 | ||
1528 | 3837 | * Fixed bug 1156901: pt-query-digest --processlist reports duplicate queries for replication thread | ||
1529 | 3838 | * Fixed bug 1160338: pt-query-digest 2.2 prints unwanted debug info on tcpdump parsing errors | ||
1530 | 3839 | * Fixed bug 1160918: pt-query-digest 2.2 prints too many string values | ||
1531 | 3840 | * Fixed bug 1156867: pt-stalk prints the wrong variable name in verbose mode when --function is used | ||
1532 | 3841 | * Fixed bug 1081733: pt-stalk plugins can't access the real --prefix | ||
1533 | 3842 | * Fixed bug 1099845: pt-table-checksum pxc same_node function incorrectly uses wsrep_sst_receive_address | ||
1534 | 3843 | * Fixed bug 821502: Some tools don't have --help or --version | ||
1535 | 3844 | * Fixed bug 947893: Some tools use @@hostname without /*!50038*/ | ||
1536 | 3845 | * Fixed bug 1082406: An explicitly set wsrep_node_incoming_address may make SHOW STATUS LIKE 'wsrep_incoming_addresses' return a portless address | ||
1537 | 3846 | |||
1538 | 3847 | v2.2.1 released 2013-03-14 | ||
1539 | 3848 | ========================== | ||
1540 | 3849 | |||
1541 | 3850 | Percona Toolkit 2.2.1 has been released. This is the first release in | ||
1542 | 3851 | the new 2.2 series which supersedes the 2.1 series and renders the 2.0 | ||
1543 | 3852 | series obsolete. We plan to do one more bug fix release for 2.1 (2.1.10), | ||
1544 | 3853 | but otherwise all new development and fixes and will now focus on 2.2. | ||
1545 | 3854 | |||
1546 | 3855 | Percona Toolkit 2.2 has been several months in the making, and it turned | ||
1547 | 3856 | out very well, with many more new features, changes, and improvements than | ||
1548 | 3857 | originally anticipated. Here are the highlights: | ||
1549 | 3858 | |||
1550 | 3859 | ---- | ||
1551 | 3860 | |||
1552 | 3861 | * Official support for MySQL 5.6 | ||
1553 | 3862 | |||
1554 | 3863 | We started beta support for MySQL 5.6 in 2.1.8 when 5.6 was still beta. | ||
1555 | 3864 | Now that 5.6 is GA, so is our support for it. Check out the Percona Toolkit | ||
1556 | 3865 | supported platforms and versions: | ||
1557 | 3866 | http://www.percona.com/mysql-support/policies/percona-toolkit-supported-platforms-and-versions | ||
1558 | 3867 | |||
1559 | 3868 | When you upgrade to MySQL 5.6, be sure to upgrade to Percona Toolkit 2.2, too. | ||
1560 | 3869 | |||
1561 | 3870 | * Official support for Percona XtraDB Cluster (PXC) | ||
1562 | 3871 | |||
1563 | 3872 | We also started beta support for Percona XtraDB Cluster in 2.1.8, but | ||
1564 | 3873 | now that support is official in 2.2 because we have had many months to | ||
1565 | 3874 | work with PXC and figure out which tools work with it and how. There's | ||
1566 | 3875 | still one noticeable omission: pt-table-sync. It's still unclear if | ||
1567 | 3876 | or how one would sync a cluster that, in theory, doesn't become out-of-sync. | ||
1568 | 3877 | As Percona XtraDB Cluster develops, Percona Toolkit will continue to | ||
1569 | 3878 | evolve to support it. | ||
1570 | 3879 | |||
1571 | 3880 | * pt-online-schema-change (pt-osc) is much more resilient | ||
1572 | 3881 | |||
1573 | 3882 | pt-online-schema-change 2.1 has been a great success, and people have been | ||
1574 | 3883 | using it for evermore difficult and challenging tasks. Consequently, we | ||
1575 | 3884 | needed to make it "try harder", even though it already tried pretty hard | ||
1576 | 3885 | to keep working despite recoverable errors and such. Whereas pt-osc 2.1 | ||
1577 | 3886 | only retries certain operations, pt-osc 2.2 retries every critical operation, | ||
1578 | 3887 | and its tries and wait time between tries for all operations are configurable. | ||
1579 | 3888 | Also, we removed --lock-wait-timeout which set innodb_lock_wait_timeout | ||
1580 | 3889 | because that now conflicts, or is at least confused with, lock_wait_timeout | ||
1581 | 3890 | (introduced in MySQL 5.5) for metadata locks. Now --set-vars is used to | ||
1582 | 3891 | set both of these (or any) system variables. For a quick intro to metadata | ||
1583 | 3892 | locks and how they may affect you, see Ovais's article: | ||
1584 | 3893 | http://www.mysqlperformanceblog.com/2013/02/01/implications-of-metadata-locking-changes-in-mysql-5-5/ | ||
1585 | 3894 | |||
1586 | 3895 | What does this all mean? In short: pt-online-schema-change 2.2 is far more | ||
1587 | 3896 | resilient out of the box. It's also aware of metadata locks now, whereas | ||
1588 | 3897 | 2.1 was not really aware of them. And it's highly configurable, so you can | ||
1589 | 3898 | make the tool try _very_ hard to keep working. | ||
1590 | 3899 | |||
1591 | 3900 | * pt-upgrade is brand-new | ||
1592 | 3901 | |||
1593 | 3902 | pt-upgrade was written once long ago, thrown into the world, and then never | ||
1594 | 3903 | heard from again... until now. Now that we have four base versions of | ||
1595 | 3904 | MySQL (5.0, 5.1, 5.5, and 5.6), plus at least four major forks (Percona | ||
1596 | 3905 | Server, MariaDB, Percona XtraDB Cluster, and MariaDB Galera Cluster), | ||
1597 | 3906 | upgrades are fashionable, so to speak. Problem is: "original" pt-upgrade | ||
1598 | 3907 | was too noisy and too complex. pt-upgrade 2.2 is far simpler and far | ||
1599 | 3908 | easier to use. It's basically what you expect from such a tool. | ||
1600 | 3909 | |||
1601 | 3910 | Moreover, it has a really helpful new feature: "reference results", i.e. | ||
1602 | 3911 | saved results from running queries on a server. Granted, this can take | ||
1603 | 3912 | _a lot_ of disk space, but it allows you to "run now, compare later." | ||
1604 | 3913 | |||
1605 | 3914 | If you're thinking about upgrading, give pt-upgrade a try. It also reads | ||
1606 | 3915 | every type of log now (slow, general, binary, and tcpdump), so you shouldn't | ||
1607 | 3916 | have a problem finding queries to run and compare. | ||
1608 | 3917 | |||
1609 | 3918 | * pt-query-digest is simpler | ||
1610 | 3919 | |||
1611 | 3920 | pt-query-digest 2.2 has fewer options now. Basically, we re-focused it | ||
1612 | 3921 | on its primary objective: analyzing MySQL query logs. So the ability | ||
1613 | 3922 | to parse memcached, Postgres, Apache, and other logs was removed. We | ||
1614 | 3923 | also removed several options that probably nobody ever used, and | ||
1615 | 3924 | changed/renamed other options to be more logical. The result is a simpler, | ||
1616 | 3925 | more focused tool, i.e. less overwhelming. | ||
1617 | 3926 | |||
1618 | 3927 | Also, pt-query-digest 2.2 can save results in JSON format (--output=json). | ||
1619 | 3928 | This feature is still in development while we determine the optimal | ||
1620 | 3929 | JSON structure. | ||
1621 | 3930 | |||
1622 | 3931 | * Version check is on by default | ||
1623 | 3932 | |||
1624 | 3933 | Way back in 2.1.4, released September/October 2012, we introduced a feature | ||
1625 | 3934 | called "version check" into most tools: http://percona.com/version-check | ||
1626 | 3935 | It's like a lot of software that automatically checks for updates, but | ||
1627 | 3936 | it's also more: it's a free service from Percona that advises when certain | ||
1628 | 3937 | programs (Percona Toolkit tools, MySQL, Perl, etc.) are either out of date | ||
1629 | 3938 | or are known bad versions. For example, there are two versions of the | ||
1630 | 3939 | DBD::mysql Perl module that have problems. And there are certain versions | ||
1631 | 3940 | of MySQL that have critical bugs. Version check will warn you about these | ||
1632 | 3941 | if your system is running them. | ||
1633 | 3942 | |||
1634 | 3943 | What's new in 2.2 is that, whereas this feature (specifically, the option | ||
1635 | 3944 | in tools: --version-check) was off by default, now it's on by default. | ||
1636 | 3945 | If the IO::Socket::SSL Perl module is installed (easily available through | ||
1637 | 3946 | your package manager), it will use a secure (https) connection over the web, | ||
1638 | 3947 | else it will use a standard (http) connection. | ||
1639 | 3948 | |||
1640 | 3949 | Check out http://percona.com/version-check for more information. | ||
1641 | 3950 | |||
1642 | 3951 | * pt-query-advisor, pt-tcp-model, pt-trend, and pt-log-player are gone | ||
1643 | 3952 | |||
1644 | 3953 | We removed pt-query-advisor, pt-tcp-model, pt-trend, and pt-log-player. | ||
1645 | 3954 | Granted, no tool is ever really gone: if you need one of these tools, | ||
1646 | 3955 | get it from 2.1. pt-log-player is now superseded by Percona Playback | ||
1647 | 3956 | (http://www.percona.com/doc/percona-playback/). pt-query-advisor was | ||
1648 | 3957 | removed so that we can focus our efforts on its online counterpart instead: | ||
1649 | 3958 | https://tools.percona.com/query-advisor. The other tools were special | ||
1650 | 3959 | projects that were not widely used. | ||
1651 | 3960 | |||
1652 | 3961 | * pt-stalk and pt-mysql-summary have built-in MySQL options | ||
1653 | 3962 | |||
1654 | 3963 | No more "pt-stalk -- -h db1 -u me". pt-stalk 2.2 and pt-mysql-summary 2.2 | ||
1655 | 3964 | have all the standard MySQL options built-in, like other tools: --user, | ||
1656 | 3965 | --host, --port, --password, --socket, --defaults-file. So now the command | ||
1657 | 3966 | line is what you expect: pt-stalk -h dhb1 -u me. | ||
1658 | 3967 | |||
1659 | 3968 | * pt-stalk --no-stalk is no longer magical | ||
1660 | 3969 | |||
1661 | 3970 | Originally, pt-stalk --no-stalk was meant to simulate pt-collect, i.e. | ||
1662 | 3971 | collect once and exit. To do that, the tool magically set some options | ||
1663 | 3972 | and clobbered others, resulting in no way to do repeated collections | ||
1664 | 3973 | at intervals. Now --no-stalk means only that: don't stalk, just collect, | ||
1665 | 3974 | respecting --interval and --iterations as usual. So to collect once | ||
1666 | 3975 | and exit: pt-stalk --no-stalk --iterations 1. | ||
1667 | 3976 | |||
1668 | 3977 | * pt-fk-error-logger and pt-deadlock-logger are standardized | ||
1669 | 3978 | |||
1670 | 3979 | Similar to the pt-stalk --no-stalk changes, pt-fk-error-logger and | ||
1671 | 3980 | pt-deadlock-logger received mini overhauls in 2.2 to make their | ||
1672 | 3981 | run-related options (--run-time, --interval, --iterations) standard. | ||
1673 | 3982 | If you hadn't noticed, one tool would run forever by default, while | ||
1674 | 3983 | the other would run once and exit. And each treated their run-related | ||
1675 | 3984 | options a little differently. This magic is gone now: both tools run | ||
1676 | 3985 | forever by default, so specify --iterations or --run-time to limit how | ||
1677 | 3986 | long they run. | ||
1678 | 3987 | |||
1679 | 3988 | ---- | ||
1680 | 3989 | |||
1681 | 3990 | There were other miscellaneous bug fixes, too. See | ||
1682 | 3991 | https://launchpad.net/percona-toolkit/+milestone/2.2.1 for the full list. | ||
1683 | 3992 | |||
1684 | 3993 | As the first release in a new series, 2.2 features are not yet finalized. | ||
1685 | 3994 | In other words, we may change things like the pt-query-digest --output json | ||
1686 | 3995 | format in future releases after receiving real-world feedback. | ||
1687 | 3996 | |||
1688 | 3997 | Percona Toolkit 2.2 is an exciting release with many helpful new | ||
1689 | 3998 | features. Users are encouraged to begin upgrading, particularly given | ||
1690 | 3999 | that, except for the forthcoming 2.1.10 release, no more work will be | ||
1691 | 4000 | done on 2.1 (unless you're a Percona customer with a support contract or | ||
1692 | 4001 | other agreement). | ||
1693 | 4002 | |||
1694 | 4003 | If you upgrade from 2.1 to 2.2, be sure to re-read tools' documentation | ||
1695 | 4004 | to see what has changed because much as changed for certain tools. | ||
1696 | 4005 | |||
1697 | 4006 | Percona Toolkit packages can be downloaded from | ||
1698 | 4007 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1699 | 4008 | Repositories (http://www.percona.com/software/repositories/). | ||
1700 | 4009 | |||
1701 | 4010 | Changelog | ||
1702 | 4011 | --------- | ||
1703 | 4012 | |||
1704 | 4013 | * Official support for MySQL 5.6 | ||
1705 | 4014 | * Official support for Percona XtraDB Cluster | ||
1706 | 4015 | * Redesigned pt-query-digest | ||
1707 | 4016 | * Redesigned pt-upgrade | ||
1708 | 4017 | * Redesigned pt-fk-error-logger | ||
1709 | 4018 | * Redesigned pt-deadlock-logger | ||
1710 | 4019 | * Changed --set-vars in all tools | ||
1711 | 4020 | * Renamed --retries to --tries in pt-online-schema-change | ||
1712 | 4021 | * Added --check-read-only to pt-heartbeat | ||
1713 | 4022 | * Added MySQL options to pt-mysql-summary | ||
1714 | 4023 | * Added MySQL options to pt-stalk | ||
1715 | 4024 | * Removed --lock-wait-timeout from pt-online-schema-change (use --set-vars) | ||
1716 | 4025 | * Removed --lock-wait-timeout from pt-table-checksum (use --set-vars) | ||
1717 | 4026 | * Removed pt-query-advisor | ||
1718 | 4027 | * Removed pt-tcp-model | ||
1719 | 4028 | * Removed pt-trend | ||
1720 | 4029 | * Removed pt-log-player | ||
1721 | 4030 | * Enabled --version-check by default in all tools | ||
1722 | 4031 | * Fixed bug 1008796: Several tools don't have --database | ||
1723 | 4032 | * Fixed bug 1087319: Quoter::serialize_list() doesn't handle multiple NULL values | ||
1724 | 4033 | * Fixed bug 1086018: pt-config-diff needs to parse wsrep_provider_options | ||
1725 | 4034 | * Fixed bug 1056838: pt-fk-error-logger --run-time works differently than pt-deadlock-logger --run-time | ||
1726 | 4035 | * Fixed bug 1093016: pt-online-schema-change doesn't retry RENAME TABLE | ||
1727 | 4036 | * Fixed bug 1113301: pt-online-schema-change blocks on metadata locks | ||
1728 | 4037 | * Fixed bug 1125665: pt-stalk --no-stalk silently clobbers other options, acts magically | ||
1729 | 4038 | * Fixed bug 1019648: pt-stalk truncates InnoDB status if there are too many transactions | ||
1730 | 4039 | * Fixed bug 1087804: pt-table-checksum doesn't warn if no slaves are found | ||
1731 | 4040 | |||
1732 | 4041 | v2.1.9 released 2013-02-14 | ||
1733 | 4042 | ========================== | ||
1734 | 4043 | |||
1735 | 4044 | Percona Toolkit 2.1.9 has been released. This release primarily aims to | ||
1736 | 4045 | restore backwards-compatibility with pt-heartbeat 2.1.7 and older, but it | ||
1737 | 4046 | also has important bug fixes for other tools. | ||
1738 | 4047 | |||
1739 | 4048 | * Fixed bug 1103221: pt-heartbeat 2.1.8 doesn't use precision/sub-second timestamps | ||
1740 | 4049 | * Fixed bug 1099665: pt-heartbeat 2.1.8 reports big time drift with UTC_TIMESTAMP | ||
1741 | 4050 | |||
1742 | 4051 | The previous release switched the time authority from Perl to MySQL, and from | ||
1743 | 4052 | local time to UTC. Unfortunately, these changes caused a loss of precision and, | ||
1744 | 4053 | if mixing versions of pt-heartbeat, made the tool report a huge amount of | ||
1745 | 4054 | replication lag. This release makes the tool compatible with pt-heartbeat | ||
1746 | 4055 | 2.1.7 and older again, but the UTC behavior introduced in 2.1.8 is now only | ||
1747 | 4056 | available by specifying the new --utc option. | ||
1748 | 4057 | |||
1749 | 4058 | * Fixed bug 918056: pt-table-sync false-positive error "Cannot nibble table because MySQL chose no index instead of the PRIMARY index" | ||
1750 | 4059 | |||
1751 | 4060 | This is an important bug fix for pt-table-sync: certain chunks from | ||
1752 | 4061 | pt-table-checksum resulted in an impossible WHERE, causing the false-positive | ||
1753 | 4062 | "Cannot nibble" error, if those chunks had diffs. | ||
1754 | 4063 | |||
1755 | 4064 | * Fixed bug 1099836: pt-online-schema-change fails with "Duplicate entry" on MariaDB | ||
1756 | 4065 | |||
1757 | 4066 | MariaDB 5.5.28 (https://kb.askmonty.org/en/mariadb-5528-changelog/) fixed | ||
1758 | 4067 | a bug: "Added warnings for duplicate key errors when using INSERT IGNORE". | ||
1759 | 4068 | However, standard MySQL does not warn in this case, despite the docs saying | ||
1760 | 4069 | that it should. Since pt-online-schema-change has always intended to ignore | ||
1761 | 4070 | duplicate entry errors by using "INSERT IGNORE", it now handles the MariaDB | ||
1762 | 4071 | case by also ignoring duplicate entry errors in the code. | ||
1763 | 4072 | |||
1764 | 4073 | * Fixed bug 1103672: pt-online-schema-change makes bad DELETE trigger if PK is re-created with new columns | ||
1765 | 4074 | |||
1766 | 4075 | pt-online-schema-change 2.1.9 handles another case of changing the primary key. | ||
1767 | 4076 | However, since changing the primary key is tricky, the tool stops if --alter | ||
1768 | 4077 | contains "DROP PRIMARY KEY", and you have to specify --no-check-alter to | ||
1769 | 4078 | acknowledge this case. | ||
1770 | 4079 | |||
1771 | 4080 | * Fixed bug 1099933: pt-stalk is too verbose, fills up log | ||
1772 | 4081 | |||
1773 | 4082 | Previously, pt-stalk printed a line for every check. Since the tool is | ||
1774 | 4083 | designed to be a long-running daemon, this could result in huge log files | ||
1775 | 4084 | with "matched=no" lines. The tool has a new --verbose option which makes it | ||
1776 | 4085 | quieter by default. | ||
1777 | 4086 | |||
1778 | 4087 | All users should upgrade, but in particular, users of versions 2.1.7 and | ||
1779 | 4088 | older are strongly recommended to skip 2.1.8 and go directly to 2.1.9. | ||
1780 | 4089 | |||
1781 | 4090 | Users of pt-heartbeat in 2.1.8 who prefer the UTC behavior should keep in | ||
1782 | 4091 | mind that they will have to use the --utc option after upgrading. | ||
1783 | 4092 | |||
1784 | 4093 | Percona Toolkit packages can be downloaded from | ||
1785 | 4094 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
1786 | 4095 | Repositories (http://www.percona.com/software/repositories/). | ||
1787 | 4096 | |||
1788 | 4097 | Changelog | ||
1789 | 4098 | --------- | ||
1790 | 4099 | |||
1791 | 4100 | * Fixed bug 1103221: pt-heartbeat 2.1.8 doesn't use precision/sub-second timestamps | ||
1792 | 4101 | * Fixed bug 1099665: pt-heartbeat 2.1.8 reports big time drift with UTC_TIMESTAMP | ||
1793 | 4102 | * Fixed bug 1099836: pt-online-schema-change fails with "Duplicate entry" on MariaDB | ||
1794 | 4103 | * Fixed bug 1103672: pt-online-schema-change makes bad DELETE trigger if PK is re-created with new columns | ||
1795 | 4104 | * Fixed bug 1115333: pt-pmp doesn't list the origin lib for each function | ||
1796 | 4105 | * Fixed bug 823411: pt-query-digest shouldn't print "Error: none" for tcpdump | ||
1797 | 4106 | * Fixed bug 1103045: pt-query-digest fails to parse non-SQL errors | ||
1798 | 4107 | * Fixed bug 1105077: pt-table-checksum: Confusing error message with binlog_format ROW or MIXED on slave | ||
1799 | 4108 | * Fixed bug 918056: pt-table-sync false-positive error "Cannot nibble table because MySQL chose no index instead of the PRIMARY index" | ||
1800 | 4109 | * Fixed bug 1099933: pt-stalk is too verbose, fills up log | ||
1801 | 4110 | |||
1802 | 4111 | v2.1.8 released 2012-12-21 | ||
1803 | 4112 | ========================== | ||
1804 | 4113 | |||
1805 | 4114 | Percona Toolkit 2.1.8 has been released. This release includes 28 bug fixes, beta support for MySQL 5.6, and extensive support for Percona XtraDB Cluster (PXC). Users intending on running the tools on Percona XtraDB Cluster or MySQL 5.6 should upgrade. The following tools have been verified to work on PXC versions 5.5.28 and newer: | ||
1806 | 4115 | |||
1807 | 4116 | * pt-table-chcecksum | ||
1808 | 4117 | * pt-online-schema-change | ||
1809 | 4118 | * pt-archive | ||
1810 | 4119 | * pt-mysql-summary | ||
1811 | 4120 | * pt-heartbeat | ||
1812 | 4121 | * pt-variable-advisor | ||
1813 | 4122 | * pt-config-diff | ||
1814 | 4123 | * pt-deadlock-logger | ||
1815 | 4124 | |||
1816 | 4125 | However, there are limitations when running these tools on PXC; see the Percona XtraDB Cluster section in each tool's documentation for further details. All other tools, with the exception of pt-slave-find, pt-slave-delay and pt-slave-restart, should also work correctly, but in some cases they have not been modified to take advantage of PXC features, so they may behave differently in future releases. | ||
1817 | 4126 | |||
1818 | 4127 | The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
1819 | 4128 | |||
1820 | 4129 | * Fixed bug 1082599: pt-query-digest fails to parse timestamp with no query | ||
1821 | 4130 | |||
1822 | 4131 | Slow logs which include timestamps but no query--which can happen if using slow_query_log_timestamp_always in Percona Server--were misparsed, resulting in an erroneous report. Now such no-query events show up in reports as ``/* No query */``. | ||
1823 | 4132 | |||
1824 | 4133 | * Fixed bug 1078838: pt-query-digest doesn't parse general log with "Connect user as user" | ||
1825 | 4134 | |||
1826 | 4135 | The "as" was misparsed and the following word would end up reported as the database; pt-query-digest now handles this correctly. | ||
1827 | 4136 | |||
1828 | 4137 | * Fixed bug 1015590: pt-mysql-summary doesn't handle renamed variables in Percona Server 5.5 | ||
1829 | 4138 | |||
1830 | 4139 | Some renamed variables had caused the Percona Server section to work unreliably. | ||
1831 | 4140 | |||
1832 | 4141 | * Fixed bug 1074179: pt-table-checksum doesn't ignore tables for --replicate-check-only | ||
1833 | 4142 | |||
1834 | 4143 | When using --replicate-check-only, filter options like --databases and --tables were not applied. | ||
1835 | 4144 | |||
1836 | 4145 | * Fixed bug 886059: pt-heartbeat handles timezones inconsistently | ||
1837 | 4146 | |||
1838 | 4147 | Previously, pt-heartbeat respected the MySQL time zone, but this caused false readings (e.g. very high lag) with slaves running in different time zones. Now pt-heartbeat uses UTC regardless of the server or MySQL time zone. | ||
1839 | 4148 | |||
1840 | 4149 | * Fixed bug 1079341: pt-online-schema-change checks for foreign keys on MyISAM tables | ||
1841 | 4150 | |||
1842 | 4151 | Since MyISAM tables can't have foreign keys, and the tool uses the information_schema to find child tables, this could cause unnecessary load on the server. | ||
1843 | 4152 | |||
1844 | 4153 | 2.1.8 continues the trend of solid bug fix releases, and all 2.1 users are encouraged to upgrade. | ||
1845 | 4154 | |||
1846 | 4155 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
1847 | 4156 | |||
1848 | 4157 | Changelog | ||
1849 | 4158 | --------- | ||
1850 | 4159 | |||
1851 | 4160 | * Beta support for MySQL 5.6 | ||
1852 | 4161 | * Beta support for Percona XtraDB Cluster | ||
1853 | 4162 | * pt-online-schema-change: If ran on Percona XtraDB Cluster, requires PXC 5.5.28 or newer | ||
1854 | 4163 | * pt-table-checksum: If ran on Percona XtraDB Cluster, requires PXC 5.5.28 or newer | ||
1855 | 4164 | * pt-upgrade: Added --[no]disable-query-cache | ||
1856 | 4165 | * Fixed bug 927955: Bad pod2rst transformation | ||
1857 | 4166 | * Fixed bug 898665: Bad online docs formatting for --[no]vars | ||
1858 | 4167 | * Fixed bug 1022622: pt-config-diff is case-sensitive | ||
1859 | 4168 | * Fixed bug 1007938: pt-config-diff doesn't handle end-of-line comments | ||
1860 | 4169 | * Fixed bug 917770: pt-config-diff Use of uninitialized value in substitution (s///) at line 1996 | ||
1861 | 4170 | * Fixed bug 1082104: pt-deadlock-logger doesn't handle usernames with dashes | ||
1862 | 4171 | * Fixed bug 886059: pt-heartbeat handles timezones inconsistently | ||
1863 | 4172 | * Fixed bug 1086259: pt-kill --log-dsn timestamp is wrong | ||
1864 | 4173 | * Fixed bug 1015590: pt-mysql-summary doesn't handle renamed variables in Percona Server 5.5 | ||
1865 | 4174 | * Fixed bug 1079341: pt-online-schema-change checks for foreign keys on MyISAM tables | ||
1866 | 4175 | * Fixed bug 823431: pt-query-advisor hangs on big queries | ||
1867 | 4176 | * Fixed bug 996069: pt-query-advisor RES.001 is incorrect | ||
1868 | 4177 | * Fixed bug 933465: pt-query-advisor false positive on RES.001 | ||
1869 | 4178 | * Fixed bug 937234: pt-query-advisor issues wrong RES.001 | ||
1870 | 4179 | * Fixed bug 1082599: pt-query-digest fails to parse timestamp with no query | ||
1871 | 4180 | * Fixed bug 1078838: pt-query-digest doesn't parse general log with "Connect user as user" | ||
1872 | 4181 | * Fixed bug 957442: pt-query-digest with custom --group-by throws error | ||
1873 | 4182 | * Fixed bug 887638: pt-query-digest prints negative byte offset | ||
1874 | 4183 | * Fixed bug 831525: pt-query-digest help output mangled | ||
1875 | 4184 | * Fixed bug 932614: pt-slave-restart CHANGE MASTER query causes error | ||
1876 | 4185 | * Fixed bug 1046440: pt-stalk purge_samples slows down checks | ||
1877 | 4186 | * Fixed bug 986847: pt-stalk does not report NFS iostat | ||
1878 | 4187 | * Fixed bug 1074179: pt-table-checksum doesn't ignore tables for --replicate-check-only | ||
1879 | 4188 | * Fixed bug 911385: pt-table-checksum v2 fails when --resume + --ignore-database is used | ||
1880 | 4189 | * Fixed bug 1041391: pt-table-checksum debug statement for "Chosen hash func" prints undef | ||
1881 | 4190 | * Fixed bug 1075638: pt-table-checksum Illegal division by zero at line 7950 | ||
1882 | 4191 | * Fixed bug 1052475: pt-table-checksum uninitialized value in numeric lt (<) at line 8611 | ||
1883 | 4192 | * Fixed bug 1078887: Tools let --set-vars clobber the required SQL mode | ||
1884 | 4193 | |||
1885 | 4194 | v2.1.7 released 2012-11-19 | ||
1886 | 4195 | ========================== | ||
1887 | 4196 | |||
1888 | 4197 | Percona Toolkit 2.1.7 has been released which is a hotfix for two bugs when using pt-table-checksum with Percona XtraDB Cluster: | ||
1889 | 4198 | |||
1890 | 4199 | * Bug 1080384: pt-table-checksum 2.1.6 crashes using PTDEBUG | ||
1891 | 4200 | * Bug 1080385: pt-table-checksum 2.1.6 --check-binlog-format doesn't ignore PXC nodes | ||
1892 | 4201 | |||
1893 | 4202 | If you're using pt-table-checksum with a Percona XtraDB Cluster, you should upgrade. Otherwise, users can wait until the next full release. | ||
1894 | 4203 | |||
1895 | 4204 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
1896 | 4205 | |||
1897 | 4206 | Changelog | ||
1898 | 4207 | --------- | ||
1899 | 4208 | |||
1900 | 4209 | * Fixed bug 1080384: pt-table-checksum 2.1.6 crashes using PTDEBUG | ||
1901 | 4210 | * Fixed bug 1080385: pt-table-checksum 2.1.6 --check-binlog-format doesn't ignore PXC nodes | ||
1902 | 4211 | |||
1903 | 4212 | v2.1.6 released 2012-11-13 | ||
1904 | 4213 | ========================== | ||
1905 | 4214 | |||
1906 | 4215 | Percona Toolkit 2.1.6 has been released. This release includes 33 bug fixes and three new features: pt-online-schema-change now handles renaming columns without losing data, removing one of the tool's limitations. pt-online-schema-change also got two new options: --default-engine and --statistics. Finally, pt-stalk now has a plugin hook interface, available through the --plugin option. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
1907 | 4216 | |||
1908 | 4217 | * Bug 978133: pt-query-digest review table privilege checks don't work | ||
1909 | 4218 | |||
1910 | 4219 | The same checks were removed from pt-table-checksum on 2.1.3 and pt-table-sync on 2.1.4, so this just follows suit. | ||
1911 | 4220 | |||
1912 | 4221 | * Bug 938068: pt-table-checksum doesn't warn if binlog_format=row or mixed on slaves | ||
1913 | 4222 | |||
1914 | 4223 | A particularly important fix, as it may stop pt-table-checksum from breaking replication in these setups. | ||
1915 | 4224 | |||
1916 | 4225 | * Bug 1043438: pt-table-checksum doesn't honor --run-time while checking replication lag | ||
1917 | 4226 | |||
1918 | 4227 | If you run multiple instances of pt-table-checksum on a badly lagged server, actually respecting --run-time stops the instances from divebombing the server when the replica catches up. | ||
1919 | 4228 | |||
1920 | 4229 | * Bug 1062324: pt-online-schema-change DELETE trigger fails when altering primary key | ||
1921 | 4230 | |||
1922 | 4231 | Fixed by choosing a key on the new table for the DELETE trigger. | ||
1923 | 4232 | |||
1924 | 4233 | * Bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
1925 | 4234 | |||
1926 | 4235 | A follow up to the same fix in the previous release, this adds to warnings for cases in which pt-table-checksum may work incorrectly and require some user intervention: One for the case of master -> cluster, and one for cluster1 -> cluster2. | ||
1927 | 4236 | |||
1928 | 4237 | * Bug 821715: LOAD DATA LOCAL INFILE broken in some platforms | ||
1929 | 4238 | |||
1930 | 4239 | This bug has hounded the toolkit for quite some time. In some platforms, trying to use LOAD DATA LOCAL INFILE would fail as if the user didn't have enough privileges to perform the operation. This was a misdiagnoses from MySQL; The actual problem was that the libmysqlclient.so provided by some vendors was compiled in a way that disallowed users from using the statement without some extra work. This fix adds an 'L' option to the DSNs the toolkit uses, tells the the tools to explicitly enables LOAD DATA LOCAL INFILE. This affected two pt-archiver and pt-upgrade, so if you are on an effected OS and need to use those, you can simply tag an L=1 to your DSN and everything should start working. | ||
1931 | 4240 | |||
1932 | 4241 | * Bug 866075: pt-show-grant doesn't support column-level grants | ||
1933 | 4242 | |||
1934 | 4243 | This was actually the 'hottest' bug in the tracker. | ||
1935 | 4244 | |||
1936 | 4245 | This is another solid bug fix release, and all 2.1 users are encouraged to upgrade. | ||
1937 | 4246 | |||
1938 | 4247 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
1939 | 4248 | |||
1940 | 4249 | Changelog | ||
1941 | 4250 | --------- | ||
1942 | 4251 | |||
1943 | 4252 | * pt-online-schema-change: Columns can now be renamed without data loss | ||
1944 | 4253 | * pt-online-schema-change: New --default-engine option | ||
1945 | 4254 | * pt-stalk: Plugin hooks available through the --plugin option to extend the tool's functionality | ||
1946 | 4255 | * Fixed bug 1069951: --version-check default should be explicitly "off" | ||
1947 | 4256 | * Fixed bug 821715: LOAD DATA LOCAL INFILE broken in some platforms | ||
1948 | 4257 | * Fixed bug 995896: Useless use of cat in Daemon.pm | ||
1949 | 4258 | * Fixed bug 1039074: Tools exit 0 on error parsing options, should exit non-zero | ||
1950 | 4259 | * Fixed bug 938068: pt-table-checksum doesn't warn if binlog_format=row or mixed on slaves | ||
1951 | 4260 | * Fixed bug 1009510: pt-table-checksum breaks replication if a slave table is missing or different | ||
1952 | 4261 | * Fixed bug 1043438: pt-table-checksum doesn't honor --run-time while checking replication lag | ||
1953 | 4262 | * Fixed bug 1073532: pt-table-checksum error: Use of uninitialized value in int at line 2778 | ||
1954 | 4263 | * Fixed bug 1016131: pt-table-checksum can crash with --columns if none match | ||
1955 | 4264 | * Fixed bug 1039569: pt-table-checksum dies if creating the --replicate table fails | ||
1956 | 4265 | * Fixed bug 1059732: pt-table-checksum doesn't test all hash functions | ||
1957 | 4266 | * Fixed bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
1958 | 4267 | * Fixed bug 1043528: pt-deadlock-logger can't parse db/tbl/index on partitioned tables | ||
1959 | 4268 | * Fixed bug 1062324: pt-online-schema-change DELETE trigger fails when altering primary key | ||
1960 | 4269 | * Fixed bug 1058285: pt-online-schema-change fails if sql_mode explicitly or implicitly uses ANSI_QUOTES | ||
1961 | 4270 | * Fixed bug 1073996: pt-online-schema-change fails with "I need a max_rows argument" | ||
1962 | 4271 | * Fixed bug 1039541: pt-online-schema-change --quiet doesn't disable --progress | ||
1963 | 4272 | * Fixed bug 1045317: pt-online-schema-change doesn't report how many warnings it suppressed | ||
1964 | 4273 | * Fixed bug 1060774: pt-upgrade fails if select column > 64 chars | ||
1965 | 4274 | * Fixed bug 1070916: pt-mysql-summary may report the wrong cnf file | ||
1966 | 4275 | * Fixed bug 903229: pt-mysql-summary incorrectly categorizes databases | ||
1967 | 4276 | * Fixed bug 866075: pt-show-grant doesn't support column-level grants | ||
1968 | 4277 | * Fixed bug 978133: pt-query-digest review table privilege checks don't work | ||
1969 | 4278 | * Fixed bug 956981: pt-query-digest docs for event attributes link to defunct Maatkit wiki | ||
1970 | 4279 | * Fixed bug 1047335: pt-duplicate-key-checker fails when it encounters a crashed table | ||
1971 | 4280 | * Fixed bug 1047701: pt-stalk deletes non-empty files | ||
1972 | 4281 | * Fixed bug 1070434: pt-stalk --no-stalk and --iterations 1 don't wait for the collect | ||
1973 | 4282 | * Fixed bug 1052722: pt-fifo-split is processing n-1 rows initially | ||
1974 | 4283 | * Fixed bug 1013407: pt-find documentation error with mtime and InnoDB | ||
1975 | 4284 | * Fixed bug 1059757: pt-trend output has no header | ||
1976 | 4285 | * Fixed bug 1063933: pt-visual-explain docs link to missing pdf | ||
1977 | 4286 | * Fixed bug 1075773: pt-fk-error-logger crashes if there's no foreign key error | ||
1978 | 4287 | * Fixed bug 1075775: pt-fk-error-logger --dest table example doesn't work | ||
1979 | 4288 | |||
1980 | 4289 | v2.1.5 released 2012-10-08 | ||
1981 | 4290 | ========================== | ||
1982 | 4291 | |||
1983 | 4292 | Percona Toolkit 2.1.5 has been released. This release is less than two weeks after the release of 2.1.4 because we wanted to address these bugs quickly: | ||
1984 | 4293 | |||
1985 | 4294 | * Bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
1986 | 4295 | |||
1987 | 4296 | * Bug 1063912: pt-table-checksum 2.1.4 miscategorizes Percona XtraDB Cluster-based slaves as cluster nodes | ||
1988 | 4297 | |||
1989 | 4298 | * Bug 1064016: pt-table-sync 2.1.4 --version-check may not work with HTTPS/SSL | ||
1990 | 4299 | |||
1991 | 4300 | The first two bugs fix how pt-table-checksum works with Percona XtraDB Cluster (PXC). Although the 2.1.4 release did introduce support for PXC, these bugs prevented pt-table-checksum from working correctly with a cluster. | ||
1992 | 4301 | |||
1993 | 4302 | The third bug is also related to a feature new in 2.1.4: --version-check. The feature uses HTTPS/SSL by default, but some modules in pt-table-sync weren't update which could prevent it from working on older systems. Related, the version check web page mentioned in tools' documentation was also created. | ||
1994 | 4303 | |||
1995 | 4304 | If you're using pt-table-checksum with a Percona XtraDB Cluster, you should definitely upgrade. Otherwise, users can wait until 2.1.6 for another full release. | ||
1996 | 4305 | |||
1997 | 4306 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
1998 | 4307 | |||
1999 | 4308 | Changelog | ||
2000 | 4309 | --------- | ||
2001 | 4310 | |||
2002 | 4311 | * Fixed bug 1062563: pt-table-checksum 2.1.4 doesn't detect diffs on Percona XtraDB Cluster nodes | ||
2003 | 4312 | * Fixed bug 1063912: pt-table-checksum 2.1.4 miscategorizes Percona XtraDB Cluster-based slaves as cluster nodes | ||
2004 | 4313 | * Fixed bug 1064016: pt-table-sync 2.1.4 --version-check may not work with HTTPS/SSL | ||
2005 | 4314 | * Fixed bug 1060423: Missing version-check page | ||
2006 | 4315 | |||
2007 | 4316 | v2.1.4 released 2012-09-20 | ||
2008 | 4317 | ========================== | ||
2009 | 4318 | |||
2010 | 4319 | Percona Toolkit 2.1.4 has been released. This release includes 26 bug fixes and three new features: Making pt-table-checksum work with Percona XtraDB Cluster, adding a --run-time option to pt-table-checksum, and implementing the "Version Check" feature, enabled through the --version-check switch. For further information on --version-check, see http://www.mysqlperformanceblog.com/2012/09/10/introducing-the-version-check-feature-in-percona-toolkit/. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
2011 | 4320 | |||
2012 | 4321 | * Fixed bug 1017626: pt-table-checksum doesn't work with Percona XtraDB Cluster | ||
2013 | 4322 | |||
2014 | 4323 | Note that this requires Percona XtraDB Cluster 5.5.27-23.6 or newer, as the fix depends on this bug https://bugs.launchpad.net/codership-mysql/+bug/1023911 being resolved. | ||
2015 | 4324 | |||
2016 | 4325 | * Fixed bug 1034170: pt-table-checksum --defaults-file isn't used for slaves | ||
2017 | 4326 | |||
2018 | 4327 | Previously, users had no recourse but using --recursion-method in conjunction with a dsn table to sidestep this bug, so this fix is a huge usability gain. This was caused by the toolkit not copying the -F portion of the main dsn. | ||
2019 | 4328 | |||
2020 | 4329 | * Fixed bug 1039184: pt-upgrade error "I need a right_sth argument" | ||
2021 | 4330 | |||
2022 | 4331 | Which were stopping pt-upgrade from working on a MySQL 4.1 host. | ||
2023 | 4332 | |||
2024 | 4333 | * Fixed bug 1036747: pt-table-sync priv checks need to be removed | ||
2025 | 4334 | |||
2026 | 4335 | The same checks were removed in the previous release from pt-table-checksum, so this continues the trend. | ||
2027 | 4336 | |||
2028 | 4337 | * Fixed bug 1038995: pt-stalk --notify-by-email fails | ||
2029 | 4338 | |||
2030 | 4339 | This was a bug in our shell option parsing library, and would potentially affect any option starting with 'no'. | ||
2031 | 4340 | |||
2032 | 4341 | Like 2.1.3, this is another solid bug fix release, and 2.1 users are encouraged to upgrade. | ||
2033 | 4342 | |||
2034 | 4343 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
2035 | 4344 | |||
2036 | 4345 | Changelog | ||
2037 | 4346 | --------- | ||
2038 | 4347 | |||
2039 | 4348 | * pt-table-checksum: Percona XtraDB Cluster support | ||
2040 | 4349 | * pt-table-checksum: Implemented the standard --run-time option | ||
2041 | 4350 | * Implemented the version-check feature in several tools, enabled with the --version-check option | ||
2042 | 4351 | * Fixed bug 856060: Document gdb dependency | ||
2043 | 4352 | * Fixed bug 1041394: Unquoted arguments to tr break the bash tools | ||
2044 | 4353 | * Fixed bug 1035311: pt-diskstats shows wrong device names | ||
2045 | 4354 | * Fixed bug 1036804: pt-duplicate-key-checker error parsing InnoDB table with no PK or unique keys | ||
2046 | 4355 | * Fixed bug 1022658: pt-online-schema-change dropping FK limitation isn't documented | ||
2047 | 4356 | * Fixed bug 1041372: pt-online-schema-changes fails if db+tbl name exceeds 64 characters | ||
2048 | 4357 | * Fixed bug 1029178: pt-query-digest --type tcpdump memory usage keeps increasing | ||
2049 | 4358 | * Fixed bug 1037211: pt-query-digest won't distill LOCK TABLES in lowercase | ||
2050 | 4359 | * Fixed bug 942114: pt-stalk warns about bad "find" usage | ||
2051 | 4360 | * Fixed bug 1035319: pt-stalk df -h throws away needed details | ||
2052 | 4361 | * Fixed bug 1038995: pt-stalk --notify-by-email fails | ||
2053 | 4362 | * Fixed bug 1038995: pt-stalk does not get all InnoDB lock data | ||
2054 | 4363 | * Fixed bug 952722: pt-summary should show information about Fusion-io cards | ||
2055 | 4364 | * Fixed bug 899415: pt-table-checksum doesn't work if slaves use RBR | ||
2056 | 4365 | * Fixed bug 954588: pt-table-checksum --check-slave-lag docs aren't clear | ||
2057 | 4366 | * Fixed bug 1034170: pt-table-checksum --defaults-file isn't used for slaves | ||
2058 | 4367 | * Fixed bug 930693: pt-table-sync and text columns with just whitespace | ||
2059 | 4368 | * Fixed bug 1028710: pt-table-sync base_count fails on n = 1000, base = 10 | ||
2060 | 4369 | * Fixed bug 1034717: pt-table-sync division by zero error with varchar primary key | ||
2061 | 4370 | * Fixed bug 1036747: pt-table-sync priv checks need to be removed | ||
2062 | 4371 | * Fixed bug 1039184: pt-upgrade error "I need a right_sth argument" | ||
2063 | 4372 | * Fixed bug 1035260: sh warnings in pt-summary and pt-mysql-summary | ||
2064 | 4373 | * Fixed bug 1038276: ChangeHandler doesn't quote varchar columns with hex-looking values | ||
2065 | 4374 | * Fixed bug 916925: CentOS 5 yum dependency resolution for perl module is wrong | ||
2066 | 4375 | * Fixed bug 1035950: Percona Toolkit RPM should contain a dependency on perl-Time-HiRes | ||
2067 | 4376 | |||
2068 | 4377 | v2.1.3 released 2012-08-03 | ||
2069 | 4378 | ========================== | ||
2070 | 4379 | |||
2071 | 4380 | Percona Toolkit 2.1.3 has been released. This release includes 31 bug fixes and one new feature: pt-kill --log-dsn to log information about killed queries to a table. The bug fixes are widely assorted. The following highlights some of the more interesting and "hot" bugs: | ||
2072 | 4381 | |||
2073 | 4382 | * Fixed bug 916168: pt-table-checksum privilege check fails on MySQL 5.5 | ||
2074 | 4383 | |||
2075 | 4384 | pt-table-checksum used to check the user's privileges, but the method was not always reliable, and due to http://bugs.mysql.com/bug.php?id=61846 it became quite unreliable on MySQL 5.5. So the privs check was removed altogether, meaning that the tool may fail later if the user's privileges are insufficient. | ||
2076 | 4385 | |||
2077 | 4386 | * Fixed bug 950294: pt-table-checksum should always create schema and tables with IF NOT EXISTS | ||
2078 | 4387 | |||
2079 | 4388 | In certain cases where the master and replicas have different schemas and/or tables, pt-table-checksum could break replication because the checksums table did not exist on a replica. | ||
2080 | 4389 | |||
2081 | 4390 | * Fixed bug 821703: pt-query-digest --processlist may crash | ||
2082 | 4391 | * Fixed bug 883098: pt-query-digest crashes if processlist has extra columns | ||
2083 | 4392 | |||
2084 | 4393 | Certain distributions of MySQL add extra columns to SHOW PROCESSLIST which caused pt-query-digest --processlist to crash at times. | ||
2085 | 4394 | |||
2086 | 4395 | * Fixed bug 941469: pt-kill doesn't reconnect if its connection is lost | ||
2087 | 4396 | |||
2088 | 4397 | pt-kill is meant to be a long-running daemon, so naturally it's important that it stays connected to MySQL. | ||
2089 | 4398 | |||
2090 | 4399 | * Fixed bug 1004567: pt-heartbeat --update --replace causes duplicate key error | ||
2091 | 4400 | |||
2092 | 4401 | The combination of these pt-heartbeat options could cause replication to break due to a duplicate key error. | ||
2093 | 4402 | |||
2094 | 4403 | * Fixed bug 1022628: pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519 | ||
2095 | 4404 | |||
2096 | 4405 | This bug was related to how --quiet was handled, and it could happen even if --quiet wasn't given on the command line. | ||
2097 | 4406 | |||
2098 | 4407 | All in all, this is solid bug fix release, and 2.1 users are encouraged to upgrade. | ||
2099 | 4408 | |||
2100 | 4409 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
2101 | 4410 | |||
2102 | 4411 | Changelog | ||
2103 | 4412 | --------- | ||
2104 | 4413 | |||
2105 | 4414 | * pt-kill: Implemented --log-dsn to log info about killed queries to a table | ||
2106 | 4415 | * Fixed bug 1016127: Install hint for DBD::mysql is wrong | ||
2107 | 4416 | * Fixed bug 984915: DSNParser does not check success of --set-vars | ||
2108 | 4417 | * Fixed bug 889739: pt-config-diff doesn't diff quoted strings properly | ||
2109 | 4418 | * Fixed bug 969669: pt-duplicate-key-checker --key-types=k doesn't work | ||
2110 | 4419 | * Fixed bug 1004567: pt-heartbeat --update --replace causes duplicate key error | ||
2111 | 4420 | * Fixed bug 1028614: pt-index-usage ignores --database | ||
2112 | 4421 | * Fixed bug 940733: pt-ioprofile leaves behind temp directory | ||
2113 | 4422 | * Fixed bug 941469: pt-kill doesn't reconnect if its connection is lost | ||
2114 | 4423 | * Fixed bug 1016114: pt-online-schema-change docs don't mention default values | ||
2115 | 4424 | * Fixed bug 1020997: pt-online-schema-change fails when table is empty | ||
2116 | 4425 | * Fixed bug 1022628: pt-online-schema-change error: Use of uninitialized value in numeric lt (<) at line 6519 | ||
2117 | 4426 | * Fixed bug 937225: pt-query-advisor OUTER JOIN advice in JOI.003 is confusing | ||
2118 | 4427 | * Fixed bug 821703: pt-query-digest --processlist may crash | ||
2119 | 4428 | * Fixed bug 883098: pt-query-digest crashes if processlist has extra columns | ||
2120 | 4429 | * Fixed bug 924950: pt-query-digest --group-by db may crash profile report | ||
2121 | 4430 | * Fixed bug 1022851: pt-sift error: PREFIX: unbound variable | ||
2122 | 4431 | * Fixed bug 969703: pt-sift defaults to '.' instead of '/var/lib/pt-talk' | ||
2123 | 4432 | * Fixed bug 962330: pt-slave-delay incorrectly computes lag if started when slave is already lagging | ||
2124 | 4433 | * Fixed bug 954990: pt-stalk --nostalk does not work | ||
2125 | 4434 | * Fixed bug 977226: pt-summary doesn't detect LSI RAID control | ||
2126 | 4435 | * Fixed bug 1030031: pt-table-checksum reports wrong number of DIFFS | ||
2127 | 4436 | * Fixed bug 916168: pt-table-checksum privilege check fails on MySQL 5.5 | ||
2128 | 4437 | * Fixed bug 950294: pt-table-checksum should always create schema and tables with IF NOT EXISTS | ||
2129 | 4438 | * Fixed bug 953141: pt-table-checksum ignores its default and explicit --recursion-method | ||
2130 | 4439 | * Fixed bug 1030975: pt-table-sync crashes if sql_mode includes ANSI_QUOTES | ||
2131 | 4440 | * Fixed bug 869005: pt-table-sync should always set REPEATABLE READ | ||
2132 | 4441 | * Fixed bug 903510: pt-tcp-model crashes in --type=requests mode on empty file | ||
2133 | 4442 | * Fixed bug 934310: pt-tcp-model --quantile docs wrong | ||
2134 | 4443 | * Fixed bug 980318: pt-upgrade results truncated if hostnames are long | ||
2135 | 4444 | * Fixed bug 821696: pt-variable-advisor shows too long of a snippet | ||
2136 | 4445 | * Fixed bug 844880: pt-variable-advisor shows binary logging as both enabled and disabled | ||
2137 | 4446 | |||
2138 | 4447 | v2.1.2 released 2012-06-12 | ||
2139 | 4448 | ========================== | ||
2140 | 4449 | |||
2141 | 4450 | Percona Toolkit 2.1.2 has been released. This is a very important release because it fixes a critical bug in pt-table-sync (bug 1003014) which caused various failures. All users of Percona Toolkit 2.1 should upgrade to this release. There were 47 other bug fixes, several new options, and other changes. The following is a high-level summary of the most important changes. | ||
2142 | 4451 | |||
2143 | 4452 | In addition to the critical bug fix mentioned above, another important pt-table-sync bug was fixed, bug 1002365: --ignore-* options did not work with --replicate. The --lock-and-rename feature of the tool was also disabled unless running MySQL 5.5 or newer because it did not work reliably in earlier versions of MySQL. | ||
2144 | 4453 | |||
2145 | 4454 | Several important pt-table-checksum bugs were fixed. First, a bug caused the tool to ignore the primary key. Second, the tool did not wait for the checksum table to replicate, so it could select from a nonexistent table on a replica and crash. Third, it did not check if all checksum queries were safe and chunk index with more than 3 columns could cause MySQL to scan many more rows than expected. | ||
2146 | 4455 | |||
2147 | 4456 | pt-online-schema-change received many improvements and fixes: it did not retry deadlocks, but now it does; --no-swap-tables caused an error; it did not handle column renames; it did not allow disabling foreign key checks; --dry-run always failed on tables with foreign keys; it used different keys for chunking and triggers; etc. In short: pt-online-schema-change 2.1.2 is superior to 2.1.1. | ||
2148 | 4457 | |||
2149 | 4458 | Two pt-archiver bugs were fixed: bug 979092, --sleep conflicts with bulk operations; and bug 903379, --file doesn't create a file. | ||
2150 | 4459 | |||
2151 | 4460 | --recursion-method=none was implemented in pt-heartbeat, pt-online-schema-change, pt-slave-find, pt-slave-restart, pt-table-checksum, and pt-table-sync. This allows these tools to avoid executing SHOW SLAVE STATUS which requires a privilege not available to Amazon RDS users. | ||
2152 | 4461 | |||
2153 | 4462 | Other bugs were fixed in pt-stalk, pt-variable-advisor, pt-duplicate-key-checker, pt-diskstats, pt-query-digest, pt-sift, pt-kill, pt-summary, and pt-deadlock-logger. | ||
2154 | 4463 | |||
2155 | 4464 | Percona Toolkit 2.1.2 should be backwards-compatible with 2.1.1, so users are strongly encouraged to upgrade. | ||
2156 | 4465 | |||
2157 | 4466 | Percona Toolkit packages can be downloaded from http://www.percona.com/downloads/percona-toolkit/ or the Percona Software Repositories (http://www.percona.com/software/repositories/). | ||
2158 | 4467 | |||
2159 | 4468 | Changelog | ||
2160 | 4469 | --------- | ||
2161 | 4470 | |||
2162 | 4471 | * pt-heartbeat: Implemented --recursion-method=none | ||
2163 | 4472 | * pt-index-usage: MySQL 5.5 compatibility fixes | ||
2164 | 4473 | * pt-log-player: MySQL 5.5 compatibility fixes | ||
2165 | 4474 | * pt-online-schema-change: Added --chunk-index-columns | ||
2166 | 4475 | * pt-online-schema-change: Added --[no]check-plan | ||
2167 | 4476 | * pt-online-schema-change: Added --[no]drop-new-table | ||
2168 | 4477 | * pt-online-schema-change: Implemented --recursion-method=none | ||
2169 | 4478 | * pt-query-advisor: Added --report-type for JSON output | ||
2170 | 4479 | * pt-query-digest: Removed --[no]zero-bool | ||
2171 | 4480 | * pt-slave-delay: Added --database | ||
2172 | 4481 | * pt-slave-find: Implemented --recursion-method=none | ||
2173 | 4482 | * pt-slave-restart: Implemented --recursion-method=none | ||
2174 | 4483 | * pt-table-checksum: Added --chunk-index-columns | ||
2175 | 4484 | * pt-table-checksum: Added --[no]check-plan | ||
2176 | 4485 | * pt-table-checksum: Implemented --recursion-method=none | ||
2177 | 4486 | * pt-table-sync: Disabled --lock-and-rename except for MySQL 5.5 and newer | ||
2178 | 4487 | * pt-table-sync: Implemented --recursion-method=none | ||
2179 | 4488 | * Fixed bug 945079: Shell tools TMPDIR may break | ||
2180 | 4489 | * Fixed bug 912902: Some shell tools still use basename | ||
2181 | 4490 | * Fixed bug 987694: There is no --recursion-method=none option | ||
2182 | 4491 | * Fixed bug 886077: Passwords with commas don't work, expose part of password | ||
2183 | 4492 | * Fixed bug 856024: Lintian warnings when building percona-toolkit Debian package | ||
2184 | 4493 | * Fixed bug 903379: pt-archiver --file doesn't create a file | ||
2185 | 4494 | * Fixed bug 979092: pt-archiver --sleep conflicts with bulk operations | ||
2186 | 4495 | * Fixed bug 903443: pt-deadlock-logger crashes on MySQL 5.5 | ||
2187 | 4496 | * Fixed bug 941064: pt-deadlock-logger can't clear deadlocks on 5.5 | ||
2188 | 4497 | * Fixed bug 952727: pt-diskstats shows incorrect wr_mb_s | ||
2189 | 4498 | * Fixed bug 994176: pt-diskstats --group-by=all --headers=scroll prints a header for every sample | ||
2190 | 4499 | * Fixed bug 894140: pt-duplicate-key-checker sometimes recreates a key it shouldn't | ||
2191 | 4500 | * Fixed bug 923896: pt-kill: uninitialized value causes script to exit | ||
2192 | 4501 | * Fixed bug 1003003: pt-online-schema-change uses different keys for chunking and triggers | ||
2193 | 4502 | * Fixed bug 1003315: pt-online-schema-change --dry-run always fails on table with foreign keys | ||
2194 | 4503 | * Fixed bug 1004551: pt-online-schema-change --no-swap-tables causes error | ||
2195 | 4504 | * Fixed bug 976108: pt-online-schema-change doesn't allow to disable foreign key checks | ||
2196 | 4505 | * Fixed bug 976109: pt-online-schema-change doesn't handle column renames | ||
2197 | 4506 | * Fixed bug 988036: pt-online-schema-change causes deadlocks under heavy write load | ||
2198 | 4507 | * Fixed bug 989227: pt-online-schema-change crashes with PTDEBUG | ||
2199 | 4508 | * Fixed bug 994002: pt-online-schema-change 2.1.1 doesn't choose the PRIMARY KEY | ||
2200 | 4509 | * Fixed bug 994010: pt-online-schema-change 2.1.1 crashes without InnoDB | ||
2201 | 4510 | * Fixed bug 996915: pt-online-schema-change crashes with invalid --max-load and --critical-load | ||
2202 | 4511 | * Fixed bug 998831: pt-online-schema-change -- Should have an option to NOT drop tables on failure | ||
2203 | 4512 | * Fixed bug 1002448: pt-online-schema-change: typo for finding usable indexes | ||
2204 | 4513 | * Fixed bug 885382: pt-query-digest --embedded-attributes doesn't check cardinality | ||
2205 | 4514 | * Fixed bug 888114: pt-query-digest report crashes with infinite loop | ||
2206 | 4515 | * Fixed bug 949630: pt-query-digest mentions a Subversion repository | ||
2207 | 4516 | * Fixed bug 844034: pt-show-grants --separate fails with proxy user | ||
2208 | 4517 | * Fixed bug 946707: pt-sift loses STDIN after pt-diskstats | ||
2209 | 4518 | * Fixed bug 994947: pt-stalk doesn't reset cycles_true after collection | ||
2210 | 4519 | * Fixed bug 986151: pt-stalk-has mktemp error | ||
2211 | 4520 | * Fixed bug 993436: pt-summary Memory: Total reports M instead of G | ||
2212 | 4521 | * Fixed bug 1008778: pt-table-checksum doesn't wait for checksum table to replicate | ||
2213 | 4522 | * Fixed bug 1010232: pt-table-checksum doesn't check the size of checksum chunks | ||
2214 | 4523 | * Fixed bug 1011738: pt-table-checksum SKIPPED is zero but chunks were skipped | ||
2215 | 4524 | * Fixed bug 919499: pt-table-checksum fails with binary log error in mysql >= 5.5.18 | ||
2216 | 4525 | * Fixed bug 972399: pt-table-checksum docs are not rendered right | ||
2217 | 4526 | * Fixed bug 978432: pt-table-checksum ignoring primary key | ||
2218 | 4527 | * Fixed bug 995274: pt-table-checksum can't use an undefined value as an ARRAY reference at line 2206 | ||
2219 | 4528 | * Fixed bug 996110: pt-table-checksum crashes if InnoDB is disabled | ||
2220 | 4529 | * Fixed bug 987393: pt-table-checksum: Empy tables cause "undefined value as an ARRAY" errors | ||
2221 | 4530 | * Fixed bug 1002365: pt-table-sync --ignore-* options don't work with --replicate | ||
2222 | 4531 | * Fixed bug 1003014: pt-table-sync --replicate and --sync-to-master error "index does not exist" | ||
2223 | 4532 | * Fixed bug 823403: pt-table-sync --lock-and-rename doesn't work on 5.1 | ||
2224 | 4533 | * Fixed bug 898138: pt-variable-advisor doesn't recognize 5.5.3+ concurrent_insert values | ||
2225 | 4534 | |||
2226 | 4535 | v2.1.1 released 2012-04-03 | ||
2227 | 4536 | ========================== | ||
2228 | 4537 | |||
2229 | 4538 | Percona Toolkit 2.1.1 has been released. This is the first release in the | ||
2230 | 4539 | new 2.1 series which supersedes the 2.0 series. We will continue to fix bugs | ||
2231 | 4540 | in 2.0, but 2.1 is now the focus of development. | ||
2232 | 4541 | |||
2233 | 4542 | 2.1 introduces a lot of new code for: | ||
2234 | 4543 | |||
2235 | 4544 | * pt-online-schema-change (completely redesigned) | ||
2236 | 4545 | * pt-mysql-summary (completely redesigned) | ||
2237 | 4546 | * pt-summary (completely redesigned) | ||
2238 | 4547 | * pt-fingerprint (new tool) | ||
2239 | 4548 | * pt-table-usage (new tool) | ||
2240 | 4549 | |||
2241 | 4550 | There were also several bug fixes. | ||
2242 | 4551 | |||
2243 | 4552 | The redesigned tools are meant to replace their 2.0 counterparts because | ||
2244 | 4553 | the 2.1 versions have the same or more functionality and they are simpler | ||
2245 | 4554 | and more reliable. pt-online-schema-change was particularly enhanced to | ||
2246 | 4555 | be as safe as possible given that the tool is inherently risky. | ||
2247 | 4556 | |||
2248 | 4557 | Percona Toolkit packages can be downloaded from | ||
2249 | 4558 | http://www.percona.com/downloads/percona-toolkit/ or the Percona Software | ||
2250 | 4559 | Repositories (http://www.percona.com/software/repositories/). | ||
2251 | 4560 | |||
2252 | 4561 | Changelog | ||
2253 | 4562 | --------- | ||
2254 | 4563 | |||
2255 | 4564 | * Completely redesigned pt-online-schema-change | ||
2256 | 4565 | * Completely redesigned pt-mysql-summary | ||
2257 | 4566 | * Completely redesigned pt-summary | ||
2258 | 4567 | * Added new tool: pt-table-usage | ||
2259 | 4568 | * Added new tool: pt-fingerprint | ||
2260 | 4569 | * Fixed bug 955860: pt-stalk doesn't run vmstat, iostat, and mpstat for --run-time | ||
2261 | 4570 | * Fixed bug 960513: SHOW TABLE STATUS is used needlessly | ||
2262 | 4571 | * Fixed bug 969726: pt-online-schema-change loses foreign keys | ||
2263 | 4572 | * Fixed bug 846028: pt-online-schema-change does not show progress until completed | ||
2264 | 4573 | * Fixed bug 898695: pt-online-schema-change add useless ORDER BY | ||
2265 | 4574 | * Fixed bug 952727: pt-diskstats shows incorrect wr_mb_s | ||
2266 | 4575 | * Fixed bug 963225: pt-query-digest fails to set history columns for disk tmp tables and disk filesort | ||
2267 | 4576 | * Fixed bug 967451: Char chunking doesn't quote column name | ||
2268 | 4577 | * Fixed bug 972399: pt-table-checksum docs are not rendered right | ||
2269 | 4578 | * Fixed bug 896553: Various documentation spelling fixes | ||
2270 | 4579 | * Fixed bug 949154: pt-variable-advisor advice for relay-log-space-limit | ||
2271 | 4580 | * Fixed bug 953461: pt-upgrade manual broken 'output' section | ||
2272 | 4581 | * Fixed bug 949653: pt-table-checksum docs don't mention risks posed by inconsistent schemas | ||
2273 | 4582 | |||
2274 | 4583 | v2.0.4 released 2012-03-07 | ||
2275 | 4584 | ========================== | ||
2276 | 4585 | |||
2277 | 4586 | Percona Toolkit 2.0.4 has been released. 23 bugs were fixed in this release, | ||
2278 | 4587 | and three new features were implemented. First, --filter was added to pt-kill | ||
2279 | 4588 | which allows for arbitrary --group-by. Second, pt-online-schema-change now | ||
2280 | 4589 | requires that its new --execute option be given, else the tool will just check | ||
2281 | 4590 | the tables and exit. This is a safeguard to encourage users to read the | ||
2282 | 4591 | documentation, particularly when replication is involved. Third, pt-stalk | ||
2283 | 4592 | also received a new option: --[no]stalk. To collect immediately without | ||
2284 | 4593 | stalking, specify --no-stalk and the tool will collect once and exit. | ||
2285 | 4594 | |||
2286 | 4595 | This release is completely backwards compatible with previous 2.0 releases. | ||
2287 | 4596 | Given the number of bug fixes, it's worth upgrading to 2.0.4. | ||
2288 | 4597 | |||
2289 | 4598 | Changelog | ||
2290 | 4599 | --------- | ||
2291 | 4600 | |||
2292 | 4601 | * Added --filter to pt-kill to allow arbitrary --group-by | ||
2293 | 4602 | * Added --[no]stalk to pt-stalk (bug 932331) | ||
2294 | 4603 | * Added --execute to pt-online-schema-change (bug 933232) | ||
2295 | 4604 | * Fixed bug 873598: pt-online-schema-change doesn't like reserved words in column names | ||
2296 | 4605 | * Fixed bug 928966: pt-pmp still uses insecure /tmp | ||
2297 | 4606 | * Fixed bug 933232: pt-online-schema-change can break replication | ||
2298 | 4607 | * Fixed bug 941225: Use of qw(...) as parentheses is deprecated at pt-kill line 3511 | ||
2299 | 4608 | * Fixed bug 821694: pt-query-digest doesn't recognize hex InnoDB txn IDs | ||
2300 | 4609 | * Fixed bug 894255: pt-kill shouldn't check if STDIN is a tty when --daemonize is given | ||
2301 | 4610 | * Fixed bug 916999: pt-table-checksum error: DBD::mysql::st execute failed: called with 2 bind variables when 6 are needed | ||
2302 | 4611 | * Fixed bug 926598: DBD::mysql bug causes pt-upgrade to use wrong precision (M) and scale (D) | ||
2303 | 4612 | * Fixed bug 928226: pt-diskstats illegal division by zero | ||
2304 | 4613 | * Fixed bug 928415: Typo in pt-stalk doc: --trigger should be --function | ||
2305 | 4614 | * Fixed bug 930317: pt-archiver doc refers to nonexistent pt-query-profiler | ||
2306 | 4615 | * Fixed bug 930533: pt-sift looking for *-processlist1; broken compatibility with pt-stalk | ||
2307 | 4616 | * Fixed bug 932331: pt-stalk cannot collect without stalking | ||
2308 | 4617 | * Fixed bug 932442: pt-table-checksum error when column name has two spaces | ||
2309 | 4618 | * Fixed bug 932883: File Debian bug after each release | ||
2310 | 4619 | * Fixed bug 940503: pt-stalk disk space checks wrong on 32bit platforms | ||
2311 | 4620 | * Fixed bug 944420: --daemonize doesn't always close STDIN | ||
2312 | 4621 | * Fixed bug 945834: pt-sift invokes pt-diskstats with deprecated argument | ||
2313 | 4622 | * Fixed bug 945836: pt-sift prints awk error if there are no stack traces to aggregate | ||
2314 | 4623 | * Fixed bug 945842: pt-sift generates wrong state sum during processlist analysis | ||
2315 | 4624 | * Fixed bug 946438: pt-query-digest should print a better message when an unsupported log format is specified | ||
2316 | 4625 | * Fixed bug 946776: pt-table-checksum ignores --lock-wait-timeout | ||
2317 | 4626 | * Fixed bug 940440: Bad grammar in pt-kill docs | ||
2318 | 4627 | |||
2319 | 4628 | v2.0.3 released 2012-02-03 | ||
2320 | 4629 | ========================== | ||
2321 | 4630 | |||
2322 | 4631 | Percona Toolkit 2.0.3 has been released. The development team was very | ||
2323 | 4632 | busy last month making this release significant: two completely | ||
2324 | 4633 | redesigned and improved tools, pt-diskstats and pt-stalk, and 20 bug fixes. | ||
2325 | 4634 | |||
2326 | 4635 | Both pt-diskstats and pt-stalk were redesigned and rewritten from the ground | ||
2327 | 4636 | up. This allowed us to greatly improve these tools' functionality and | ||
2328 | 4637 | increase testing for them. The accuracy and output of pt-diskstats was | ||
2329 | 4638 | enhanced, and the tool was rewritten in Perl. pt-collect was removed and | ||
2330 | 4639 | its functionality was put into a new, enhanced pt-stalk. pt-stalk is now | ||
2331 | 4640 | designed to be a stable, long-running daemon on a variety of common platforms. | ||
2332 | 4641 | It is worth re-reading the documentation for each of these tools. | ||
2333 | 4642 | |||
2334 | 4643 | The 20 bug fixes cover a wide range of problems. The most important are | ||
2335 | 4644 | fixes to pt-table-checksum, pt-iostats, and pt-kill. Apart from pt-diskstats, | ||
2336 | 4645 | pt-stalk, and pt-collect (which was removed), no other tools were changed | ||
2337 | 4646 | in backwards-incompatible ways, so it is worth reviewing the full changelog | ||
2338 | 4647 | for this release and upgrading if you use any tools which had bug fixes. | ||
2339 | 4648 | |||
2340 | 4649 | Thank you to the many people who reported bugs and submitted patches. | ||
2341 | 4650 | |||
2342 | 4651 | Download the latest release of Percona Toolkit 2.0 from | ||
2343 | 4652 | http://www.percona.com/software/percona-toolkit/ | ||
2344 | 4653 | or the Percona Software Repositories | ||
2345 | 4654 | (http://www.percona.com/docs/wiki/repositories:start). | ||
2346 | 4655 | |||
2347 | 4656 | Changelog | ||
2348 | 4657 | --------- | ||
2349 | 4658 | |||
2350 | 4659 | * Completely redesigned pt-diskstats | ||
2351 | 4660 | * Completely redesigned pt-stalk | ||
2352 | 4661 | * Removed pt-collect and put its functionality in pt-stalk | ||
2353 | 4662 | * Fixed bug 871438: Bash tools are insecure | ||
2354 | 4663 | * Fixed bug 897758: Failed to prepare TableSyncChunk plugin: Use of uninitialized value $args{"chunk_range"} in lc at pt-table-sync line 3055 | ||
2355 | 4664 | * Fixed bug 919819: pt-kill --execute-command creates zombies | ||
2356 | 4665 | * Fixed bug 925778: pt-ioprofile doesn't run without a file | ||
2357 | 4666 | * Fixed bug 925477: pt-ioprofile docs refer to pt-iostats | ||
2358 | 4667 | * Fixed bug 857091: pt-sift downloads http://percona.com/get/pt-pmp, which does not work | ||
2359 | 4668 | * Fixed bug 857104: pt-sift tries to invoke mext, should be pt-mext | ||
2360 | 4669 | * Fixed bug 872699: pt-diskstats: rd_avkb & wr_avkb derived incorrectly | ||
2361 | 4670 | * Fixed bug 897029: pt-diskstats computes wrong values for md0 | ||
2362 | 4671 | * Fixed bug 882918: pt-stalk spams warning if oprofile isn't installed | ||
2363 | 4672 | * Fixed bug 884504: pt-stalk doesn't check pt-collect | ||
2364 | 4673 | * Fixed bug 897483: pt-online-schema-change "uninitialized value" due to update-foreign-keys-method | ||
2365 | 4674 | * Fixed bug 925007: pt-online-schema-change Use of uninitialized value $tables{"old_table"} in concatenation (.) or string at line 4330 | ||
2366 | 4675 | * Fixed bug 915598: pt-config-diff ignores --ask-pass option | ||
2367 | 4676 | * Fixed bug 919352: pt-table-checksum changes binlog_format even if already set to statement | ||
2368 | 4677 | * Fixed bug 921700: pt-table-checksum doesn't add --where to chunk size test on replicas | ||
2369 | 4678 | * Fixed bug 921802: pt-table-checksum does not recognize --recursion-method=processlist | ||
2370 | 4679 | * Fixed bug 925855: pt-table-checksum index check is case-sensitive | ||
2371 | 4680 | * Fixed bug 821709: pt-show-grants --revoke and --separate don't work together | ||
2372 | 4681 | * Fixed bug 918247: Some tools use VALUE instead of VALUES | ||
2373 | 4682 | |||
2374 | 4683 | v2.0.2 released 2012-01-05 | ||
2375 | 4684 | ========================== | ||
2376 | 4685 | |||
2377 | 4686 | Percona Toolkit 2.0.2 fixes one critical bug: pt-table-sync --replicate | ||
2378 | 4687 | did not work with character values, causing an "Unknown column" error. | ||
2379 | 4688 | If using Percona Toolkit 2.0.1, you should upgrade to 2.0.2. | ||
2380 | 4689 | |||
2381 | 4690 | Download the latest release of Percona Toolkit 2.0 from | ||
2382 | 4691 | http://www.percona.com/software/percona-toolkit/ | ||
2383 | 4692 | or the Percona Software Repositories | ||
2384 | 4693 | (http://www.percona.com/docs/wiki/repositories:start). | ||
2385 | 4694 | |||
2386 | 4695 | Changelog | ||
2387 | 4696 | --------- | ||
2388 | 4697 | |||
2389 | 4698 | * Fixed bug 911996: pt-table-sync --replicate causes "Unknown column" error | ||
2390 | 4699 | |||
2391 | 4700 | v2.0.1 released 2011-12-30 | ||
2392 | 4701 | ========================== | ||
2393 | 4702 | |||
2394 | 4703 | The Percona Toolkit development team is proud to announce a new major version: | ||
2395 | 4704 | 2.0. Beginning with Percona Toolkit 2.0, we are overhauling, redesigning, and | ||
2396 | 4705 | improving the major tools. 2.0 tools are therefore not backwards compatible | ||
2397 | 4706 | with 1.0 tools, which we still support but will not continue to develop. | ||
2398 | 4707 | |||
2399 | 4708 | New in Percona Toolkit 2.0.1 is a completely redesigned pt-table-checksum. | ||
2400 | 4709 | The original pt-table-checksum 1.0 was rather complex, but it worked well | ||
2401 | 4710 | for many years. By contrast, the new pt-table-checksum 2.0 is much simpler but | ||
2402 | 4711 | also much more efficient and reliable. We spent months rethinking, redesigning, | ||
2403 | 4712 | and testing every aspect of the tool. The three most significant changes: | ||
2404 | 4713 | pt-table-checksum 2.0 does only --replicate, it has only one chunking algorithm, | ||
2405 | 4714 | and its memory usage is stable even with hundreds of thousands of tables and | ||
2406 | 4715 | trillions of rows. The tool is now dedicated to verifying MySQL replication | ||
2407 | 4716 | integrity, nothing else, which it does extremely well. | ||
2408 | 4717 | |||
2409 | 4718 | In Percona Toolkit 2.0.1 we also fixed various small bugs and forked ioprofile | ||
2410 | 4719 | and align (as pt-ioprofile and pt-align) from Aspersa. | ||
2411 | 4720 | |||
2412 | 4721 | If you still need functionalities in the original pt-table-checksum, | ||
2413 | 4722 | the latest Percona Toolkit 1.0 release remains available for download. | ||
2414 | 4723 | Otherwise, all new development in Percona Toolkit will happen in 2.0. | ||
2415 | 4724 | |||
2416 | 4725 | Download the latest release of Percona Toolkit 2.0 from | ||
2417 | 4726 | http://www.percona.com/software/percona-toolkit/ | ||
2418 | 4727 | or the Percona Software Repositories | ||
2419 | 4728 | (http://www.percona.com/docs/wiki/repositories:start). | ||
2420 | 4729 | |||
2421 | 4730 | Changelog | ||
2422 | 4731 | --------- | ||
2423 | 4732 | |||
2424 | 4733 | * Completely redesigned pt-table-checksum | ||
2425 | 4734 | * Fixed bug 856065: pt-trend does not work | ||
2426 | 4735 | * Fixed bug 887688: Prepared statements crash pt-query-digest | ||
2427 | 4736 | * Fixed bug 888286: align not part of percona-toolkit | ||
2428 | 4737 | * Fixed bug 897961: ptc 2.0 replicate-check error does not include hostname | ||
2429 | 4738 | * Fixed bug 898318: ptc 2.0 --resume with --tables does not always work | ||
2430 | 4739 | * Fixed bug 903513: MKDEBUG should be PTDEBUG | ||
2431 | 4740 | * Fixed bug 908256: Percona Toolkit should include pt-ioprofile | ||
2432 | 4741 | * Fixed bug 821717: pt-tcp-model --type=requests crashes | ||
2433 | 4742 | * Fixed bug 844038: pt-online-schema-change documentation example w/drop-tmp-table does not work | ||
2434 | 4743 | * Fixed bug 864205: Remove the query to reset @crc from pt-table-checksum | ||
2435 | 4744 | * Fixed bug 898663: Typo in pt-log-player documentation | ||
2436 | 4745 | |||
2437 | 4746 | v1.0.1 released 2011-09-01 | ||
2438 | 4747 | ========================== | ||
2439 | 4748 | |||
2440 | 4749 | Percona Toolkit 1.0.1 has been released. In July, Baron announced planned | ||
2441 | 4750 | changes to Maatkit and Aspersa development;[1] Percona Toolkit is the | ||
2442 | 4751 | result. In brief, Percona Toolkit is the combined fork of Maatkit and | ||
2443 | 4752 | Aspersa, so although the toolkit is new, the programs are not. That means | ||
2444 | 4753 | Percona Toolkit 1.0.1 is mature, stable, and production-ready. In fact, | ||
2445 | 4754 | it's even a little more stable because we fixed a few bugs in this release. | ||
2446 | 4755 | |||
2447 | 4756 | Percona Toolkit packages can be downloaded from | ||
2448 | 4757 | http://www.percona.com/downloads/percona-toolkit/ | ||
2449 | 4758 | or the Percona Software Repositories | ||
2450 | 4759 | (http://www.percona.com/docs/wiki/repositories:start). | ||
2451 | 4760 | |||
2452 | 4761 | Although Maatkit and Aspersa development use Google Code, Percona Toolkit | ||
2453 | 4762 | uses Launchpad: https://launchpad.net/percona-toolkit | ||
2454 | 4763 | |||
2455 | 4764 | [1] http://www.xaprb.com/blog/2011/07/06/planned-change-in-maatkit-aspersa-development/ | ||
2456 | 4765 | |||
2457 | 4766 | Changelog | ||
2458 | 4767 | --------- | ||
2459 | 4768 | |||
2460 | 4769 | * Fixed bug 819421: MasterSlave::is_replication_thread() doesn't match all | ||
2461 | 4770 | * Fixed bug 821673: pt-table-checksum doesn't include --where in min max queries | ||
2462 | 4771 | * Fixed bug 821688: pt-table-checksum SELECT MIN MAX for char chunking is wrong | ||
2463 | 4772 | * Fixed bug 838211: pt-collect: line 24: [: : integer expression expected | ||
2464 | 4773 | * Fixed bug 838248: pt-collect creates a "5.1" file | ||
2465 | 4774 | |||
2466 | 4775 | v0.9.5 released 2011-08-04 | ||
2467 | 4776 | ========================== | ||
2468 | 4777 | |||
2469 | 4778 | Percona Toolkit 0.9.5 represents the completed transition from Maatkit and Aspersa. There are no bug fixes or new features, but some features have been removed (like --save-results from pt-query-digest). This release is the starting point for the 1.0 series where new development will happen, and no more changes will be made to the 0.9 series. | ||
2470 | 4779 | |||
2471 | 4780 | Changelog | ||
2472 | 4781 | --------- | ||
2473 | 4782 | |||
2474 | 4783 | * Forked, combined, and rebranded Maatkit and Aspersa as Percona Toolkit. | ||
2475 | 4784 | >>>>>>> MERGE-SOURCE | ||
2476 | 2398 | 4785 | ||
2477 | === added file 't/pt-online-schema-change/bug-1315130.t' | |||
2478 | --- t/pt-online-schema-change/bug-1315130.t 1970-01-01 00:00:00 +0000 | |||
2479 | +++ t/pt-online-schema-change/bug-1315130.t 2014-07-03 18:13:52 +0000 | |||
2480 | @@ -0,0 +1,78 @@ | |||
2481 | 1 | #!/usr/bin/env perl | ||
2482 | 2 | |||
2483 | 3 | BEGIN { | ||
2484 | 4 | die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n" | ||
2485 | 5 | unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH}; | ||
2486 | 6 | unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib"; | ||
2487 | 7 | }; | ||
2488 | 8 | |||
2489 | 9 | use strict; | ||
2490 | 10 | use warnings FATAL => 'all'; | ||
2491 | 11 | use English qw(-no_match_vars); | ||
2492 | 12 | use Test::More; | ||
2493 | 13 | use Time::HiRes qw(sleep); | ||
2494 | 14 | |||
2495 | 15 | $ENV{PTTEST_FAKE_TS} = 1; | ||
2496 | 16 | $ENV{PERCONA_TOOLKIT_TEST_USE_DSN_NAMES} = 1; | ||
2497 | 17 | |||
2498 | 18 | use PerconaTest; | ||
2499 | 19 | use Sandbox; | ||
2500 | 20 | require "$trunk/bin/pt-online-schema-change"; | ||
2501 | 21 | require VersionParser; | ||
2502 | 22 | |||
2503 | 23 | use Data::Dumper; | ||
2504 | 24 | $Data::Dumper::Indent = 1; | ||
2505 | 25 | $Data::Dumper::Sortkeys = 1; | ||
2506 | 26 | $Data::Dumper::Quotekeys = 0; | ||
2507 | 27 | |||
2508 | 28 | my $dp = new DSNParser(opts=>$dsn_opts); | ||
2509 | 29 | my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp); | ||
2510 | 30 | my $master_dbh = $sb->get_dbh_for('master'); | ||
2511 | 31 | my $slave_dbh = $sb->get_dbh_for('slave1'); | ||
2512 | 32 | |||
2513 | 33 | if ( !$master_dbh ) { | ||
2514 | 34 | plan skip_all => 'Cannot connect to sandbox master'; | ||
2515 | 35 | } | ||
2516 | 36 | elsif ( !$slave_dbh ) { | ||
2517 | 37 | plan skip_all => 'Cannot connect to sandbox slave'; | ||
2518 | 38 | } | ||
2519 | 39 | |||
2520 | 40 | my $q = new Quoter(); | ||
2521 | 41 | my $tp = new TableParser(Quoter => $q); | ||
2522 | 42 | my @args = qw(--set-vars innodb_lock_wait_timeout=3); | ||
2523 | 43 | my $output = ""; | ||
2524 | 44 | my $dsn = "h=127.1,P=12345,u=msandbox,p=msandbox"; | ||
2525 | 45 | my $exit = 0; | ||
2526 | 46 | my $sample = "t/pt-online-schema-change/samples"; | ||
2527 | 47 | my $rows; | ||
2528 | 48 | |||
2529 | 49 | |||
2530 | 50 | # ############################################################################# | ||
2531 | 51 | # Issue 1315130 | ||
2532 | 52 | # Failed to detect child tables in other schema, and falsely identified | ||
2533 | 53 | # child tables in own schema | ||
2534 | 54 | # ############################################################################# | ||
2535 | 55 | |||
2536 | 56 | $sb->load_file('master', "$sample/bug-1315130_cleanup.sql"); | ||
2537 | 57 | $sb->load_file('master', "$sample/bug-1315130.sql"); | ||
2538 | 58 | ($output, $exit) = full_output( | ||
2539 | 59 | sub { pt_online_schema_change::main(@args, "$dsn,D=bug_1315130_a,t=parent_table", | ||
2540 | 60 | '--dry-run', | ||
2541 | 61 | '--alter', "add column c varchar(16)", | ||
2542 | 62 | '--alter-foreign-keys-method', 'auto'), | ||
2543 | 63 | }, | ||
2544 | 64 | ); | ||
2545 | 65 | print STDERR "[$output]\n"; | ||
2546 | 66 | like( | ||
2547 | 67 | $output, | ||
2548 | 68 | qr/Child tables:\s*`bug_1315130_a`\.`child_table_in_same_schema` \(approx\. 1 rows\)\s*`bug_1315130_b`\.`child_table_in_second_schema` \(approx\. 1 rows\)[^`]*?Will/s, | ||
2549 | 69 | "Correctly identify child tables from other schemas and ignores tables from same schema referencig same named parent in other schema.", | ||
2550 | 70 | ); | ||
2551 | 71 | # clear databases with their foreign keys | ||
2552 | 72 | $sb->load_file('master', "$sample/bug-1315130_cleanup.sql"); | ||
2553 | 73 | |||
2554 | 74 | # Done. | ||
2555 | 75 | # ############################################################################# | ||
2556 | 76 | $sb->wipe_clean($master_dbh); | ||
2557 | 77 | ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox"); | ||
2558 | 78 | done_testing; |