pt-table-sync --replicate causes "Unknown column" error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Released
|
Critical
|
Daniel Nichter |
Bug Description
Version: pt-table-sync 2.0.1
Steps:
1) Run pt-table-checksum , discover differences exist between master and slave.
2) pt-table-sync --print --replicate percona.checksums master1 , to find out what it's going to do.
3) Pops up a bunch of errors of the form:
Unknown column 'R1992062264' in 'where clause' [for Statement "SELECT MIN(`docno`), MAX(`docno`) FROM `boc`.`doc` FORCE INDEX (`PRIMARY`) WHERE (((`docno` >= R1992062264)) AND ((`docno` <= R1992112899)))"] at line 3465 while doing boc.doc on slave1
4) ... ?
Nothing seems to end up being done
Master1 is running 5.1.58, Master2 is running 5.1.58, slave1 is running 5.1.59.
I presume it's because it's failing to quote the values it's doing a comparison against? I've confirmed adding ' marks around the values docno is being compared against makes it actually return data.
Related branches
- Brian Fraser (community): Approve
- Baron Schwartz (community): Approve
- Daniel Nichter: Approve
-
Diff: 132 lines (+47/-16)5 files modifiedChangelog (+2/-0)
bin/pt-table-sync (+2/-2)
t/pt-table-sync/basics.t (+30/-1)
t/pt-table-sync/diff_where.t (+1/-1)
t/pt-table-sync/samples/issue_560_output_2.txt (+12/-12)
Changed in percona-toolkit: | |
importance: | Undecided → Critical |
assignee: | nobody → Daniel Nichter (daniel-nichter) |
status: | New → In Progress |
summary: |
- pt-table-sync replicate resulting in "Unknown Column" + pt-table-sync --replicate causes "Unknown column" error |
Changed in percona-toolkit: | |
milestone: | none → 2.0.2 |
If you need more detailed data I'm happy to provide some privately off ticket, I'm slightly restricted to what I can post in a public environment.