maria:bb-11.0-mdev-22979-bootstrap-test-demo

Last commit made on 2023-04-21
Get this branch:
git clone -b bb-11.0-mdev-22979-bootstrap-test-demo https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.0-mdev-22979-bootstrap-test-demo
Repository:
lp:maria

Recent commits

5fb5286... by Yuchen Pei

Comparing test results under a broken spider

- mdev_22979: pass with failed post-test check
- mdev_22979_2: pass
- mdev_22979_bootstrap: ERROR: 12524 Can't open system table mysql.spider_table_sts

5746cad... by Yuchen Pei

MDEV-27095 clean up spd_init_query.h

700c0ae... by Yuchen Pei

MDEV-27095 spider should be installed with INSTALL SONAME ha_spider

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.

bc0cbf6... by Yuchen Pei

MDEV-29676 Some changes in behaviour w.r.t. spider sts crd

- assign spider->share early when !new_share
- remove locking before spider_share_init_{sts,crd}

0e7e5b0... by Yuchen Pei

MDEV-29676 refactored and documented spider_get_share() and friends

Extracted out common subroutines, gave more meaningful names etc,
added comments etc.

Also:
- Documented active servers load balancing reads, and other fields in
  SPIDER_SHARE etc.
- Removed commented out code
- Documented and refactored self-reference check
- Removed some unnecessary functions
- Renamed unhelpful root_count
- Refactored spider_get_{sts,crd}, where we turn get_type into an enum
- Cleaned up spider_mbase_handler::show_table_status() and
  spider_mbase_handler::show_index()

03a693e... by Yuchen Pei

MDEV-30265 Document some sts related functions in spider.

fcdf565... by Yuchen Pei

MDEV-30542 Add multilength spider self-reference detection test

8c0879e... by Yuchen Pei

MDEV-28363 remove #ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor

30df6c4... by Yuchen Pei

MDEV-30581 Add a testcase for MDEV-29904

c31542f... by Yuchen Pei

MDEV-27912 Fixing inconsistency w.r.t. expect files in tests.

mtr uses group suffix, but some existing inc and test files use
server_id for expect files. This patch aims to fix that.

For spider:

With this change we will not have to maintain a separate version of
restart_mysqld.inc for spider, that duplicates code, just because
spider tests use different names for expect files, and shutdown_mysqld
requires magical names for them.

With this change spider tests will also be able to use other features
provided by restart_mysqld.inc without code duplication, like the
parameter $restart_parameters (see e.g. the testcase mdev_29904.test
in commit ef1161e5d4f).

Tests run after this change: default, spider, rocksdb, galera, using
the following command

mtr --parallel=auto --force --max-test-fail=0 --skip-core-file
mtr --suite spider,spider/*,spider/*/* \
    --skip-test="spider/oracle.*|.*/t\..*" --parallel=auto --big-test \
    --force --max-test-fail=0 --skip-core-file
mtr --suite galera --parallel=auto
mtr --suite rocksdb --parallel=auto