pt-table-checksum doesn't work with autocommit=0
Bug #1688419 reported by
Matthew B
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Triaged
|
Medium
|
Carlos Salguero |
Bug Description
When MySQL is operating in autocommit=0 mode, as defined in /etc/my.cnf, pt-table-checksum will not work as pt-table-checksum does not execute COMMIT statements.
Suggested fix: Add COMMIT after all checksum statements executed by the script when autocommit=0 (or just do it all the time)
Suggested fix: As pt-table-checksum will force binlog format = RBR, likewise, pt-t-c should force autocommit=1 for its sessions
To post a comment you must log in.
Also, if autocommit = 0, CPU usage goes to 100%
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28917 karl 20 0 104416 35116 9160 R 100,0 0,2 7:53.38 perl