1. 12 Dec, 2023 3 commits
  2. 11 Dec, 2023 3 commits
  3. 10 Dec, 2023 1 commit
  4. 08 Dec, 2023 3 commits
  5. 07 Dec, 2023 14 commits
    • Brandon Nesterenko's avatar
      MDEV-32953: main.rpl_mysqldump_slave Fails with "Master binlog wasn’t deleted" Assertion · 9be7e03f
      Brandon Nesterenko authored
      Because --delete-master-logs immediately purges logs after flushing,
      it is possible the binlog dump thread would still be using the old
      log when the purge executes, disallowing the file from being
      deleted.
      
      This patch institutes a work-around in the test as follows:
       1) temporarily stop the slave so there is no chance the old binlog
      is still being referenced.
       2) set master_use_gtid=Slave_pos so the slave can still appear
      up-to-date on the master after the master flushes/purges its logs
      (while the slave is offline). Otherwise (i.e. if using binlog
      file/pos), the slave would point to a purged log file, and receive
      an error immediately upon connecting to the master.
      
      Reviewed By
      ============
      Andrei Elkin <andrei.elkin@mariadb.com>
      9be7e03f
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-32242 innodb.doublewrite test case always gets skipped · d5a6ea36
      Thirunarayanan Balathandayuthapani authored
      - Split the doublewrite test into two test (doublewrite,
      doublewrite_debug) to reduce the execution time of the test
      - Removed big_test tag for the newly added test case
      - Made doublewrite test as non-debug test
      - Added search pattern to make sure that InnoDB uses doublewrite buffer
      - Replaced all kill_mysqld.inc with shutdown_mysqld.inc and
      zero shutdown timeout
      - Removed the case where fsp_flags got corrupted. Because from commit
      3da5d047 (MDEV-31851) onwards,
      doublewrite buffer removes the conversion the fsp flags from buggy
      10.1 format
      
      Thanks to Marko Mäkelä for providing the non-debug test
      d5a6ea36
    • Yuchen Pei's avatar
      Merge branch '10.4' into 10.5 · c33ca17c
      Yuchen Pei authored
      c33ca17c
    • Yuchen Pei's avatar
      Merge branch '10.4' into 10.5 · 13dd7875
      Yuchen Pei authored
      13dd7875
    • Yuchen Pei's avatar
      MDEV-32753 Make spider init queries compatible with oracle sql mode · ba94778d
      Yuchen Pei authored
      Remove ORACLE from the (session) sql_mode in connections made with sql
      service to run init queries
      
      The connection is new and the global variable value takes effect
      rather than the session value from the caller of spider_db_init.
      ba94778d
    • Sergei Golubchik's avatar
      MDEV-32683 Spider engine does not load with non-default alter-algorithm · 69389c03
      Sergei Golubchik authored
      specify algorithm/lock explicitly, don't depend on server settings
      69389c03
    • Yuchen Pei's avatar
    • Yuchen Pei's avatar
      MDEV-32507 Spider: Use $MTR_SUITE_DIR for init-file files · 30af9872
      Yuchen Pei authored
      This should fix certain CI builds where the spider suite test files
      and the main suite test files do not follow the same relative paths
      relations as the mariadb source.
      30af9872
    • Yuchen Pei's avatar
      MDEV-32515 Use $MYSQLD_LAST_CMD in spider/bugfix.mdev_30370 · 70283aca
      Yuchen Pei authored
      $MYSQLD_CMD uses .1 as the defaults-group-suffix, which could cause
      the use of the default port (3306) or socket, which will fail in
      environment where these defaults are already in use by another server.
      
      Adding an extra --defaults-group-suffix=.1.1 does not help, because
      the first flag wins.
      
      So we use $MYSQLD_LAST_CMD instead, which uses the correct suffix.
      
      The extra innodb buffer pool warning is irrelevant to the goal of the
      test (running --wsrep-recover with --plug-load-add=ha_spider should
      not cause hang)
      70283aca
    • Yuchen Pei's avatar
      MDEV-22979 MDEV-27233 MDEV-28218 Fixing spider init bugs · d8f5d2be
      Yuchen Pei authored
      Fix spider init bugs (MDEV-22979, MDEV-27233, MDEV-28218) while
      preventing regression on old ones (MDEV-30370, MDEV-29904)
      
      Two things are changed:
      
      First, Spider initialisation is made fully synchronous, i.e. it no
      longer happens in a background thread. Adapted from the original fix
      by nayuta for MDEV-27233. This change itself would cause failure when
      spider is initialised early, by plugin-load-add, due to dependency on
      Aria and udf function creation, which are fixed in the second and
      third parts below. Requires SQL Service, thus porting earlier versions
      requires MDEV-27595
      
      Second, if spider is initialised before udf_init(), create udf by
      inserting into `mysql.func`, otherwise do it by `CREATE FUNCTION` as
      usual. This change may be generalised in MDEV-31401.
      
      Also factor out some clean-up queries from deinit_spider.inc for use
      of spider init tests.
      
      A minor caveat is that early spider initialisation will fail if the
      server is bootstrapped for the first time, due to missing `mysql`
      database which needs to be created by the bootstrap script.
      d8f5d2be
    • Yuchen Pei's avatar
      MDEV-27095 clean up spd_init_query.h · afe63ec6
      Yuchen Pei authored
      Removing procedures that were created and dropped during init.
      
      This also fixes a race condition where mtr test with
      plugin-load-add=ha_spider.so causes post test check to fail as it
      expects the procedures to still be there.
      afe63ec6
    • Yuchen Pei's avatar
      MDEV-27095 installing one spider plugin should not trigger others · f0af56be
      Yuchen Pei authored
      There are several plugins in ha_spider: spider, spider_alloc_mem,
      spider_wrapper_protocols, spider_rewrite etc.
      
      INSTALL PLUGIN foo SONAME ha_spider causes all the other ones to be
      installed by the init queries where foo is any of the plugins.
      
      This introduces unnecessary complexiy. For example it reads
      mysql.plugins to find all other plugins, causing the hack of moving
      spider plugin init to a separate thread.
      
      To install all spider related plugins, install soname ha_spider should
      be used instead.
      
      This also fixes spurious rows in mysql.plugin when installing say only
      the spider plugin with `plugin-load-add=SPIDER=ha_spider.so`:
      
      select * from mysql.plugin;
      name	dl
      spider_alloc_mem	ha_spider.so # should not be here
      spider_wrapper_protocols	ha_spider.so # should not be here
      
      Adapted from part of the reverted commit
      c160a115.
      f0af56be
    • Julius Goryavsky's avatar
      MDEV-32344: IST failed with ssl-mode=VERIFY_CA · 66fafdb9
      Julius Goryavsky authored
      This commit fixes a bug where IST could be rejected in favor of SST
      when ssl-mode=VERIFY_CA and when mariabackup is used. It also contains
      a test and small code simplifications that will make it easier to find
      bugs in the future.
      66fafdb9
    • Yuchen Pei's avatar
      MDEV-28683 Spider: create conn on demand when direct delete · 13896f73
      Yuchen Pei authored
      We do this in 10.4 at the same place where in 10.5+ dml_init() is
      called which does the same thing, among other things.
      13896f73
  6. 06 Dec, 2023 2 commits
    • Oleg Smirnov's avatar
      MDEV-15656 Assertion `is_last_prefix <= 0' failed in QUICK_GROUP_MIN_MAX_SELECT::get_next · a8bd6a98
      Oleg Smirnov authored
      When QUICK_GROUP_MIN_MAX_SELECT is initialized or being reset
      it stores the prefix of the last group of the index chosen for
      retrieving data (last_value). Later, when looping through records
      at get_next() method, the server checks whether the retrieved
      group is the last, and if so, it finishes processing.
      
      At the same time, it looks like there is no need for that additional
      check since method next_prefix() returns HA_ERR_KEY_NOT_FOUND
      or HA_ERR_END_OF_FILE when there are no more satisfying records.
      If we do not perform the check, we do not need to retrieve and
      store last_value either.
      
      This commit removes using of last_value from QUICK_GROUP_MIN_MAX_SELECT.
      
      Reviewer: Sergei Petrunia <sergey@mariadb.com>
      a8bd6a98
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-29092 FOREIGN_KEY_CHECKS does not prevent non-copy alter from creating invalid FK structure · d5fc34db
      Thirunarayanan Balathandayuthapani authored
      Problem:
      ========
      - InnoDB should have two keys on the same column for the self
      referencing foreign key relation.
      
      Solution:
      =========
      - Allow self referential foreign key relation to work with one
      key.
      d5fc34db
  7. 05 Dec, 2023 7 commits
  8. 04 Dec, 2023 3 commits
  9. 02 Dec, 2023 3 commits
  10. 30 Nov, 2023 1 commit
    • Rex's avatar
      MDEV-32212 DELETE with ORDER BY and semijoin optimization causing crash · c6a9fd79
      Rex authored
      Statements affected by this bug are delete statements that have all
      these conditions
      
      1) single table delete syntax
      2) and in (sub-query) predicate
      3) semi-join optimization enabled
      4) an order by clause.
      
      Semijoin optimization on an innocent looking query, such as
      
      DELETE FROM t1 WHERE c1 IN (select c2 from t2) ORDER BY c1;
      
      turns it from a single table delete to a multi-table delete.
      
      During multi_delete::initialize_tables for the top level join object, a
      table is initialized missing a keep_current_rowid flag, needed to
      position a handler for removal of the correct row after the filesort
      structure has been built.
      
      Fix provided by Monty (monty@mariadb.com)
      Pushed into 10.5 at Monty's request.
      Applicable to 10.6, 10.11, 11.0.
      OK'd by Monty in slack:#askmonty 2023-12-01
      c6a9fd79