pt-table-checksum doesn't work with autocommit=0

Bug #1688419 reported by Matthew B
6
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

Revision history for this message
Carlos Salguero (carlos-salguero) wrote :

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

Changed in percona-toolkit:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Carlos Salguero (carlos-salguero)
Revision history for this message
Matthew B (utdrmac) wrote :

CPU spins up because when running pt-t-c on master, it continuously waits/contacts each slave looking for the checksums which never come because there was no commit. ouch!

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-730

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.