• Kristian Nielsen's avatar
    MDEV-7065: Incorrect relay log position in parallel replication after retry of transaction · 3dcd01e5
    Kristian Nielsen authored
    The retry of an event group in parallel replication set the wrong value for
    the end log position of the event that was retried
    (qev->future_event_relay_log_pos). It was too large by the size of the event,
    so it pointed into the middle of the following event.
    
    If the retry happened in the very last event of the event group, _and_ the SQL
    thread was stopped just after successfully retrying that event, then the SQL
    threads's relay log position would be left incorrect. Restarting the SQL
    thread could then try to read events from a garbage offset in the relay log,
    usually leading to an error about not being able to read the event.
    3dcd01e5
rpl_parallel_retry.test 7.97 KB