• Andrei Elkin's avatar
    MDEV-20821 parallel slave server shutdown hang · 5cd21ac2
    Andrei Elkin authored
    Parallel slave server shutdown found to be hanging in
    close_connections() triggered by shutdown due to a slave worker thread
    would not be notified to exit in case the worker was sitting idle.
    
    Fixed with destroying the worker pool earlier that is in
    slave_prepare_for_shutdown() when all their driver threads have already left.
    A test file is added to simulate the bug condition as well as check
    multi-sourced and not-idle worker cases.
    5cd21ac2
rpl_slave_shutdown_mdev20821.result 2 KB