1. 02 Jan, 2024 1 commit
  2. 22 Dec, 2023 3 commits
    • Vladislav Vaintroub's avatar
      Fix galera.galera_kill_ddl test errors in debug mode. · 9f40f02a
      Vladislav Vaintroub authored
      Marko reported DBUG_ASSERT from dict_stats_shutdown().
      
      destroy_background_thd() does not like when current_thd is set.
      In galera, it can be the case, dict_stats_shutdown() can be called from
      user thread, to stop and later restart stats recalculations.
      9f40f02a
    • Yuchen Pei's avatar
      [fixup] Spider: correct init queries after merge · bdaa6bac
      Yuchen Pei authored
      The merge e95bba9c missed it
      bdaa6bac
    • Daniele Sciascia's avatar
      MDEV-32549 Cluster inconsistent after SAVEPOINT is rolled back · 362c0950
      Daniele Sciascia authored
      Attempting to set a SAVEPOINT when one of the involved storage engines
      does not support savepoints, raises an error, and results in statement
      rollback. If Galera is enabled with binlog emulation, the above
      scenario was not handled correctly, and resulted in cluster wide
      inconsistency.
      
      The problem was in wsrep_register_binlog_handler(), which is called
      towards the beginning of SAVEPOINT execution. This function is
      supposed to mark the beginning of statement position in trx cache
      through `set_prev_position()`. However, it did so only on condition
      that `get_prev_position()` returns `MY_OFF_T_UNDEF`.
      This before statement position is typically reset to undefined at the
      end of statement in `binlog_commit()` / `binlog_rollback()`.
      However that's not the case with Galera and binlog emulation, for
      which binlog commit / rollback hooks are not called due to the
      optimization that avoids internal 2PC (MDEV-16509).
      Signed-off-by: default avatarJulius Goryavsky <julius.goryavsky@mariadb.com>
      362c0950
  3. 21 Dec, 2023 12 commits
  4. 20 Dec, 2023 9 commits
  5. 19 Dec, 2023 8 commits
  6. 18 Dec, 2023 2 commits
  7. 17 Dec, 2023 3 commits
    • Sergei Golubchik's avatar
      MDEV-33046 race condition in InnoDB dict_stats_schedule() · aff5ed39
      Sergei Golubchik authored
      it can be invoked with ms=0. In that case dict_stats_func is
      invoked immediately, it calls dict_stats_process_entry_from_recalc_pool()
      which at the end might try to call dict_stats_schedule() again to
      queue another recalc. And it can happen that the first
      dict_stats_schedule(0) call didn't release dict_stats_mutex yet,
      so the second dict_stats_schedule() won't queue a recalc. And as a
      result the table won't have its stats recalculated at all, not now,
      not later.
      
      This causes innodb.innodb_stats_auto_recalc to fail sporadically.
      
      This commit doesn't fix it but makes it less likely to occur which happens
      to be enough for the test to pass. Proper fix is coming soon.
      aff5ed39
    • Sergei Golubchik's avatar
      Spider cannot run DDL (e.g. create tables) before ddl recovery · 0930eb86
      Sergei Golubchik authored
      use signal_ddl_recovery_done callback for that.
      
      also make the server to call signal_ddl_recovery_done() when loading
      plugins at run-time (so that plugins would't need to detect that
      on their own)
      0930eb86
    • Sergei Golubchik's avatar
      Merge branch '10.5' into 10.6 · e95bba9c
      Sergei Golubchik authored
      e95bba9c
  8. 15 Dec, 2023 2 commits