maria:bb-11.0-mdev-25292-ycp-spider-maint

Last commit made on 2023-04-26
Get this branch:
git clone -b bb-11.0-mdev-25292-ycp-spider-maint https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-11.0-mdev-25292-ycp-spider-maint
Repository:
lp:maria

Recent commits

dbc199f... by Yuchen Pei

MDEV-29676 Add query to set lock wait timeout when getting sts crd

Set the lock wait timeout to 1 beforehand, and reset it afterwards, to
avoid lock conflict caused by opening the same table twice in case of
self-reference.

eccc4d0... 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}

0db62b1... 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 roop_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()

dae160a... by Yuchen Pei

MDEV-30265 Document some sts related functions in spider.

f3353ca... by Yuchen Pei

MDEV-30542 Add multilength spider self-reference detection test

2544cac... by Yuchen Pei

MDEV-28363 remove #ifdef SPIDER_use_LEX_CSTRING_for_Field_blob_constructor

d14d952... by Yuchen Pei

MDEV-30581 Add a testcase for MDEV-29904

acf0a20... 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

a75b609... by Yuchen Pei

MDEV-30920 Remove need_lock and table from spider_close_sys_table()

9c054e9... by midenok

MDEV-29544 SIGSEGV in HA_CREATE_INFO::finalize_locked_tables

On finalize_atomic_replace() even if we dropped the original table
because we could not rename it to backup we also may fail to rename
temporary table by the same reason.

DDL_LOG flag passed as rename param helps to force rename when the
miscellaneous operations fail (such as maintaining the statistics).