pt-heartbeat causing duplicate key errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
New
|
High
|
Unassigned |
Bug Description
I have gotten duplicate key errors on 2 different stacks of mysql within the last week.
Could not execute Write_rows event on table repl_heartbeat.
I am running MySQL 5.6.34 in Master <-> Master configuration
and using pt-heartbeat 2.2.20
The duplicate key errors break on the specified pt-heartbeat target table and I have resolved the issue by truncating the target table (repl_heartbeat
I have been running pt-heartbeat for about 5 years now have had very few issues if any but now I had have 2 issues in the last week. I did recently upgrade percona-toolkit on my server.
sudo grep -i percona /var/log/dpkg.log
2017-01-23 09:56:06 upgrade percona-toolkit:all 2.2.20-1 2.2.20-1
2017-01-23 09:56:06 status half-configured percona-toolkit:all 2.2.20-1
2017-01-23 09:56:06 status unpacked percona-toolkit:all 2.2.20-1
2017-01-23 09:56:06 status half-installed percona-toolkit:all 2.2.20-1
2017-01-23 09:56:06 status half-installed percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status half-installed percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status unpacked percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status unpacked percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 configure percona-toolkit:all 2.2.20-1 2.2.20-1
2017-01-23 09:56:07 status unpacked percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status half-configured percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status triggers-awaited percona-toolkit:all 2.2.20-1
2017-01-23 09:56:07 status installed percona-toolkit:all 2.2.20-1
Attached is a dump of pertinent binary logs , show slave status output and global variables.
Would you please take a look and see if you can identify the problem.
Thanks,
EricH
Changed in percona-toolkit: | |
milestone: | none → 2.2.21 |
milestone: | 2.2.21 → none |
importance: | Undecided → High |
I just wanted to drop a note that I have not had an issue again since late January 2017.
It did happen twice in January on two separate stacks but never again.
I send 12 pt-heartbeats per minute 24/7 on 12 different stacks.
I am still using pt-heartbeat 2.2.20