• Kristian Nielsen's avatar
    MDEV-10863: parallel replication tries to continue from wrong position · 717f2128
    Kristian Nielsen authored
    This occured when the SQL thread (but not the IO thread) stops while
    GTID and parallel replication are used with multiple domain ids in the
    GTID position, and is restarted.
    
    In this case, the SQL needs to start some way back in the relay log,
    applying or skipping events within each replication domain as
    appropriate.
    
    The SQL threads starts at the beginning of an old relay log file, and
    this position may be in the middle of an event group. The bug was that
    such partial event group could be re-applied, causing replication
    corruption.
    
    This patch fixes the issue, by making sure to skip any initial events
    that were part of an earlier (already applied) event group.
    717f2128
rpl_mdev10863.result 1.24 KB