a new value of slave_exec_mode to handle slave error such as "HA_ERR_KEY_NOT_FOUND" or "HA_ERR_FOUND_DUPP_KEY"
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Wishlist
|
Unassigned | |||
5.5 |
Triaged
|
Wishlist
|
Unassigned | |||
5.6 |
Triaged
|
Wishlist
|
Unassigned | |||
5.7 |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Replication is often interrupted because of some errors, and the most common errors we encountered recently are "HA_ERR_
there are two methods to handle the errors:
1). ignore the error by setting "sql_slave_
2).set slave_exec_mode = "idempotent" to handle "HA_ERR_
Both methods may lead to inconsistencies between master and slave.
if we are using row-based replication and innodb storage engine , why don't we fix these errors instead of simply ignore it?
So I introduced in a new value of slave_exec_mode: SMART
a simple idea is :
1) HA_ERR_
2)HA_ERR_
WRITE_
UPDATE_
The attached file is a simple patch based on Percona-
tags: | added: contribution |
Changed in percona-server: | |
assignee: | nobody → Raghavendra D Prabhu (raghavendra-prabhu) |
Add stats for smart handle.