pt-table-sync : does not work on primary with truncated value
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
New
|
Undecided
|
Unassigned |
Bug Description
My command line was :
pt-table-sync --verbose --print h=db2.local,
The message i get :
Cannot nibble table `test`.
Root cause is the primary key us a truncated field .
1) My example table definition :
create table test.pt_
ticket int(11) NOT NULL ,
name text NOT NULL,
value text,
PRIMARY KEY ( ticket,name(166))
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
You need some rows to trigger this behavior .
2) To populate my example table :
truncate table test.pt_
insert into test.pt_
insert into test.pt_
insert into test.pt_
insert into test.pt_
update test.pt_
And run 10 times this query :
insert into test.pt_
Other information :
Debian jessie with DB is mysql 5.5.58-0 (5.5.58-
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PT-1469