• Andrei Elkin's avatar
    MDEV-12746 rpl.rpl_parallel_optimistic_nobinlog fails committing · 30019a48
    Andrei Elkin authored
               out of order at retry
    
    The test failures were of two sorts. One is that the number of retries
    what the slave thought as a temporary error exceeded
    the default value of the slave retry option.
    The 2nd issue was an out of order commit by transactions that
    were supposed to error out instead.
    Both issues are caused by the same reason that the post-temporary-error
    retry did not check possibly already existing error status.
    
    This is mended with refining conditions to retry. Specifically, a retrying
    worker checks `rpl_parallel_entry::stop_on_error_sub_id` that
    a potential failing predecessor could set to its own sub id.
    Now should the member be set the retrying follower errors out with
    ER_PRIOR_COMMIT_FAILED.
    30019a48
rpl_parallel.cc 89.2 KB