pt-table-checksum chunk-size-limit of 0 does not disable chunk size limit checking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Invalid
|
Undecided
|
Daniel Nichter |
Bug Description
pt-table-cheumsum 2.0.3 seems to find a --chunk-size-limit of 0 not special:
I get lots of
02-22T03:50:09 Aborting table afval.hs_file at chunk 1 because it is not safe to chunk. Chunking should use the PRIMARY index, but MySQL EXPLAIN reports that no index will be used.
02-22T03:50:09 Aborting table afval.hs_itemfile at chunk 1 because it is not safe to chunk. Chunking should use the PRIMARY index, but MySQL EXPLAIN reports that no index will be used.
which I did not have yesterday with chunk-size-limit on 5, but most tellingly:
02-22T03:50:42 Skipping table afval.mg_
1 rows on erika.ii.nl
1 rows on piro.ii.nl
The current chunk size limit is 0 rows (chunk size=2805 * chunk size limit=0).
My invocation (bash script)
ignore_
ignore_
eval pt-table-checksum --recursion-method dsn=h=127.
The chunk-size-limit of 5 was not high enough (I think I even tried 10) to guarantee that all tables would be checksummed, I think the 'too many rows on the slave' test is too sensitive. InnoDB's guesstimated row count varies just too much (I've ran an ANALYZE table on all tables the day before this).
Related branches
- Daniel Nichter: Approve
-
Diff: 91 lines (+31/-14)2 files modifiedbin/pt-table-checksum (+7/-10)
t/pt-table-checksum/basics.t (+24/-4)
tags: | added: chunking pt-table-checksum |
summary: |
pt-table-checksum chunk-size-limit of 0 does not disable chunk size - limit checkinga + limit checking |
Changed in percona-toolkit: | |
milestone: | none → 2.1.6 |
Changed in percona-toolkit: | |
assignee: | nobody → Daniel Nichter (daniel-nichter) |
assignee: | Daniel Nichter (daniel-nichter) → Brian Fraser (fraserbn) |
Changed in percona-toolkit: | |
status: | Confirmed → In Progress |
Changed in percona-toolkit: | |
importance: | Medium → Undecided |
So if I understand correctly, you're trying to use a value of 0 to disable the check, right?