• Michael Widenius's avatar
    MDEV-10804 main.stat_tables_par fails sporadically in buildbot · 99332399
    Michael Widenius authored
    This was because of two issues:
    - thr_multi_lock_after_thr_lock needed to be hit 3 times before go2 could
      be signaled, because 2 of these happened before statistics_update_start
      was reached.
    - The original code didn't take into accunt that thr_locks can be executed in
      any random order, which caused sporadic failures when waiting for 1 lock
      of 3, as if the locks where in different order, there would be a dead-lock.
      Fixed by introducing thr_multi_lock_before_thr_lock which is deterministic.
    - Some of the test failures where not noticed as the DEBUG_SYNC timeout
      would cause the test to pass (after 300 seconds).
    99332399
stat_tables_par.test 7.09 KB