• Brandon Nesterenko's avatar
    MDEV-30608: rpl.rpl_delayed_parallel_slave_sbm sometimes fails with... · eecd4f14
    Brandon Nesterenko authored
    MDEV-30608: rpl.rpl_delayed_parallel_slave_sbm sometimes fails with Seconds_Behind_Master should not have used second transaction timestamp
    
    One of the constraints added in the MDEV-29639 patch, is that only
    the first event after idling should update last_master_timestamp;
    and as long as the replica has more events to execute, the variable
    should not be updated. The corresponding test,
    rpl_delayed_parallel_slave_sbm.test, aims to verify this; however,
    if the IO thread takes too long to queue events, the SQL thread can
    appear to catch up too fast.
    
    This fix ensures that the relay log has been fully written before
    executing the events.
    
    Note that the underlying cause of this test failure needs to be
    addressed as a bug-fix, this is a temporary fix to stop test
    failures. To track work on the bug-fix for the underlying issue,
    please see MDEV-30619.
    eecd4f14
rpl_delayed_parallel_slave_sbm.result 2.4 KB