lp:~sergei.glushchenko/percona-server/5.6-ST43091-ps-bug1331586

Created by Sergei Glushchenko and last modified
Get this branch:
bzr branch lp:~sergei.glushchenko/percona-server/5.6-ST43091-ps-bug1331586
Only Sergei Glushchenko can upload to this branch. If you are Sergei Glushchenko please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Recent revisions

619. By Sergei Glushchenko

Bug 1331586: Replication stall with multi-threaded replication

This patch addresses the issue when incomplete group is read from the
relay log my MTS slave. Single-thread slave handles this case
correctly.

Incomplete group (the one which is not ends with COMMIT/ROLLBACK/XID)
can be written into relay log in two cases:

1. Slave IO thread restart in the middle of the group.
2. Slave crash or shutdown while receiving log group from master.
3. Master gone when sending events to slave.
4. FLUSH LOGS on slave.

First three cases produce incomplete group at the end of the relay
log file which should be rolled back, while 4th produces log group
spread into two relay log files which should be committed. To
distinguish between these two cases we need look into log format
events and stop events. Stop event should always rollback while
format event should rollback in case when "created" flag is set.

Rollback is made by returning artificially generated "ROLLBACK" query
event from next_event() when needed.

Debug-only sync points set in certain places of master IO thread and
slave IO thread to produce incomplete log groups.

617. By Tomislav Plavcic

Null merge from 5.5 - lp:~tplavcic/percona-server/bug1328421-5.6

613. By Laurynas Biveinis

Null-merge lp:percona-server/5.5 rev 670

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:percona-server/5.6
This branch contains Public information 
Everyone can see this information.