1. 14 Nov, 2022 2 commits
  2. 03 Nov, 2022 5 commits
  3. 02 Nov, 2022 10 commits
  4. 01 Nov, 2022 4 commits
  5. 31 Oct, 2022 2 commits
  6. 29 Oct, 2022 4 commits
  7. 28 Oct, 2022 1 commit
    • Vlad Lesin's avatar
      MDEV-28709 unexpected X lock on Supremum in READ COMMITTED · 2f421688
      Vlad Lesin authored
      Post-push fix. The flag of transaction which indicates that it's necessary
      to forbid gap lock inheritance after XA PREPARE could be inverted if
      lock_release_on_prepare_try() is invoked several times. The fix is to
      toggle it on lock_release_on_prepare() exit.
      2f421688
  8. 26 Oct, 2022 12 commits
    • Sergei Golubchik's avatar
      columnstore 5.6.8-1 · b4a58581
      Sergei Golubchik authored
      b4a58581
    • Oleksandr Byelkin's avatar
      Merge branch '10.4' into 10.5 · 4519b42e
      Oleksandr Byelkin authored
      4519b42e
    • Oleksandr Byelkin's avatar
      Merge branch '10.3' into 10.4 · 29633dc0
      Oleksandr Byelkin authored
      29633dc0
    • Marko Mäkelä's avatar
      Disable perfschema.mdl_func on Windows · 79dc3989
      Marko Mäkelä authored
      The test fails extremely often on a Windows builder, and nobody seems
      to be interested in fixing it.
      79dc3989
    • Marko Mäkelä's avatar
      MDEV-29886 Assertion !index->table->is_temporary() failed in CHECK TABLE · cf96db4f
      Marko Mäkelä authored
      ha_innobase::check(): Do not enable READ UNCOMMITTED isolation level
      for temporary tables, because it would report index count mismatch
      for secondary indexes.
      
      row_check_index(): Ignore EXTENDED for temporary tables, because
      the tables are private to the current connection and there will be
      no purge of committed transaction history.
      cf96db4f
    • Marko Mäkelä's avatar
      MDEV-29883 Deadlock between InnoDB statistics update and BLOB insert · 8b6a308e
      Marko Mäkelä authored
      The test innodb.innodb-wl5522-debug would occasionally hang
      (especially when run with ./mtr --rr) due to a deadlock between
      btr_store_big_rec_extern_fields() and dict_stats_analyze_index().
      The two threads would acquire the clustered index root page latch and
      the tablespace latch in the opposite order. The deadlock was possible
      because dict_stats_analyze_index() was holding the index latch in
      shared mode and an index root page latch, while waiting for the
      tablespace latch. If a stronger dict_index_t::lock had been held
      by dict_stats_analyze_index(), any operations that free or allocate
      index pages would have been blocked.
      
      In each caller of fseg_n_reserved_pages() except ibuf_init_at_db_start()
      which is a special case for ibuf.index at database startup, we must hold
      an index latch that prevents concurrent allocation or freeing of index
      pages.
      
      Any operation that allocates or free pages that belong to an index tree
      must first acquire an index latch in Update or Exclusive mode, and while
      holding that, acquire an index root page latch in Update or Exclusive
      mode.
      
      dict_index_t::clear(): Also acquire an index latch. Otherwise,
      the test innodb.insert_into_empty could hang.
      
      btr_get_size_and_reserved(): Assert that a strong enough index latch
      is being held. Only acquire a shared fil_space_t::latch; we are only
      reading, not modifying any data.
      
      dict_stats_update_transient_for_index(),
      dict_stats_analyze_index(): Acquire a strong enough index latch. Only
      acquire a shared fil_space_t::latch.
      
      These operations had followed the same order of acquiring latches in
      every InnoDB version since the very beginning
      (commit c533308a).
      The calls for acquiring tablespace latch had previously been moved in
      commit 87839258 and
      commit 1e9c922f.
      
      The hang was introduced in
      commit 2e814d47 which imported
      mysql/mysql-server@ac74632293bea967b352d1b472abedeeaa921b98
      which failed to strengthen the locking requirements of the function
      btr_get_size().
      8b6a308e
    • Vlad Lesin's avatar
      MDEV-29869 mtr failure: innodb.deadlock_wait_thr_race · 78a04a4c
      Vlad Lesin authored
      1. The merge aeccbbd9 has overwritten
      lock0lock.cc, and the changes of MDEV-29622 and MDEV-29635 were
      partially lost, this commit restores the changes.
      
      2. innodb.deadlock_wait_thr_race test:
      
      The following hang was found during testing.
      
      There is deadlock_report_before_lock_releasing sync point in
      Deadlock::report(), which is waiting for sel_cont signal under lock_sys_t
      lock. The signal must be issued after "UPDATE t SET b = 100" rollback,
      and that rollback is executing undo record, which is blocked
      on dict_sys latch request. dict_sys is locked by the thread of statistics
      update(dict_stats_save()), and during that update lock_sys lock is
      requested, and can't be acquired as Deadlock::report() holds it. We have
      to disable statistics update to make the test stable.
      
      But even if statistics update is disabled, and transaction with consistent
      snapshot is started at the very beginning of the test to prevent purging,
      the purge can still be invoked for system tables, and it tries to open
      system table by id, what causes dict_sys.freeze() call and dict_sys
      latching. What, in combination with lock_sys::xx_lock() causes the same
      deadlock as described above. We need to disable purging globally for the
      test as well.
      
      All the above is applicable to innodb.deadlock_wait_lock_race test also.
      78a04a4c
    • Oleksandr Byelkin's avatar
      278fbe61
    • Brad Smith's avatar
      4b87d362
    • Andrew Hutchings's avatar
      MDEV-29578 Fix CONNECT build warnings · fa5f26b4
      Andrew Hutchings authored
      Fix a couple of build warnings that fire with CONNECT engine.
      fa5f26b4
    • Alexander Barkov's avatar
      MDEV-28822 Table from older version requires table rebuild when adding column... · f90d9c34
      Alexander Barkov authored
      MDEV-28822 Table from older version requires table rebuild when adding column to table with multi-column index
      
      This problem was earlier fixed in 10.4 by the patch for MDEV-29481.
      
      Adding MTR tests only.
      f90d9c34
    • Brad Smith's avatar
      Rocksdb: Add initial OpenBSD support · 055cb3fc
      Brad Smith authored
      055cb3fc