pt-archiver cannot sync max id record
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Invalid
|
Undecided
|
Unassigned |
Bug Description
pt-archiver doesn't work when i sync data from one table to another table.please look at it:
The version of pt
[root@redis02 ~]# pt-archiver --version
pt-archiver 2.2.19
root@10.0.0.6:3306 12:49:58 [(none)]>select count(*) from test;
+----------+
| count(*) |
+----------+
| 88787 |
+----------+
1 row in set (0.09 sec)
[root@redis02 ~]# pt-archiver --source h=10.0.
...
...
SELECT 88786
INSERT 88786
DELETE 88786
...
...
Less a record????check the source table
root@localhost:
+------
| id | name | age | createtime |
+------
| 88787 | hello88787 | 83 | 2017-07-19 17:24:21 |
+------
1 row in set (0.00 sec)
yes,really lost a record,at last,i solve the problem with motified the pt-archiver
[root@redis02 ~]# sed -n '6257p' /usr/bin/
$first_sql .= " AND ($col < " . $q->quote_val($val) . ")";
[root@redis02 ~]# sed -n '6257p' /usr/bin/
$first_sql .= " AND ($col <= " . $q->quote_val($val) . ")";
ok,the problem solve
Please, could you post the result of:
SHOW CREATE TABLE test;