• Daniele Sciascia's avatar
    MDEV-20780 Fixes for failures on galera_sr_ddl_master (#1425) · 72a5a4f1
    Daniele Sciascia authored
    Test galera_sr_ddl_master would sometimes fail due to leftover
    streaming replication fragments. Rollbacker thread would attempt to
    open streaming_log table to remove the fragments, but would fail in
    check_stack_overrun(). Ultimately the check_stack_overrun() failure
    was caused by rollbacker missing to switch the victim's THD thread
    stack to rollbacker's thread stack.
    
    Also in this patch:
    - Remove duplicate functionality in rollbacker helper functions,
      and extract rollbacker fragment removal into function
      wsrep_remove_streaming_fragments()
    - Reuse open_for_write() in wsrep_schema::remove_fragments
    - Partially revert changes to galera_sr_ddl_master test from
      commit 44a11a7c. Removed unnecessary
      wait condition and isolation level setting
    72a5a4f1
wsrep_schema.cc 39.8 KB