Implement pt-table-checksum --dry-run.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Confirmed
|
Low
|
Frank Cizmich |
Bug Description
It would be nice to have --dry-run in pt-table-checksum, also, as a means of being able to see to what slaves the tool will connect to, for debugging purposes. I tried with --explain, but it won't connect to the slaves in this way.
Comparing to pt-table-sync --dry-run:
$ pt-table-sync --dry-run --replicate percona.checksums h=127.0.
# NOTE: --dry-run does not show if data needs to be synced because it
# does not access, compare or sync data. --dry-run only shows
# the work that would be done.
# Syncing via replication P=23390,
# DELETE REPLACE INSERT UPDATE ALGORITHM START END EXIT DATABASE.TABLE
# 0 0 0 0 Chunk 18:11:39 18:11:39 0 test.t1
# Syncing via replication P=23391,
# DELETE REPLACE INSERT UPDATE ALGORITHM START END EXIT DATABASE.TABLE
This would be useful if we wanted to check this, without actually generating load in the servers (or network traffic due to replicated statements).
Thanks,
Agustín.
description: | updated |
Changed in percona-toolkit: | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Frank Cizmich (frank-cizmich) |
milestone: | none → 2.3.1 |
Changed in percona-toolkit: | |
milestone: | 2.2.17 → 2.2.18 |
Changed in percona-toolkit: | |
milestone: | 2.2.18 → 2.2.19 |
Changed in percona-toolkit: | |
milestone: | 2.2.19 → 2.2.20 |
Changed in percona-toolkit: | |
status: | In Progress → Confirmed |
milestone: | 2.2.20 → 2.2.21 |
Hi Agustín,
It's a fair request. databases- regex option:
Meanwhile, if you want to check which slaves the tool is connecting to without generating load on the server or the network you can try running in debug mode while ignoring all the databases via the ignore-
e.g:
PTDEBUG=1 pt-table-checksum --ignore- databases- regex=' .' <dns>
Notice the regex is a single period, which matches all possible database names.
Cheers!
;-)