• sjaakola's avatar
    MDEV-21723 Async slave thread BF abort and replaying fixes · 603e6b9b
    sjaakola authored
    If async replication slave thread conflicts with cluster replication,
    then the async slave transaction should be BF aborted, and depending on the
    state of async slave transaction execution, potentially also replayed.
    There were problems in such BF abort implementation and the replaying was not
    started.
    This pull request contains fixes which make sure that if async slave thread is
    marked to abort and replay, it will complete carry out the rollback and
    release all locks and resources before starting the replaying. After replaying,
    async slave transactions is treated as successful, so the slave thread will
    continue as usual, handling next replication event.
    
    There is also new mtr test: galera.galera_slave_replay, which stresses both a
    certification failure for async slave thread and a successful BF abort
    followed by replaying.
    603e6b9b
log_event.cc 455 KB