maria:bb-10.4-MDEV-13915

Last commit made on 2023-05-01
Get this branch:
git clone -b bb-10.4-MDEV-13915 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-13915
Repository:
lp:maria

Recent commits

9625306... by Brandon Nesterenko

MDEV-13915: Updates to existing MTR tests

189be7d... by Brandon Nesterenko

MDEV-13915: STOP SLAVE takes very long time on a busy system

The problem is that a parallel replica would not immediately stop
running/queued transactions when issued STOP SLAVE. This would lead
to long periods to wait for all waiting transactions to finish.

This patch updates a parallel replica to try and abort immediately
and roll-back any ongoing transactions. The exception is with
non-transactional workloads. If any threads have modified any
non-transactional tables, it along with all prior transactions
are executed as well.

Reviewed By
==========
Andrei Elkin <email address hidden>

9fcd6b7... by Brandon Nesterenko

MDEV-13915 Regression

Separated MTR tests out from code changes to make it easier to test
against the old code base.

a959c22... by Oleksandr "Sanja" Byelkin

return accidentally removed in 45d4f6b97b4811b1b7783dcd19526be1dbb196dc comment

6171119... by Oleksandr "Sanja" Byelkin

MDEV-30889: 3 - Item_in_optimizer leak

Keep Item_in_optimizer cache always (but only once) in statement memory.

45d4f6b... by Oleksandr "Sanja" Byelkin

MDEV-30889: 2 - Allocation in TABLE_SHARE::init_from_sql_statement_string

 Fix leack in TABLE_SHARE::init_from_sql_statement_string
 by removing uneeded switching arenas.

348f4c9... by Oleksandr "Sanja" Byelkin

MDEV-30889: 1 - Allocation in Item_subselect::mark_as_dependent

Fix leack in Item_subselect::mark_as_dependent (allocation
of temporary list in statement memory inctroduced in
f4d552104364fe195237f39862d91f657c7a34cb )

b942f41... by Sergei Golubchik

MDEV-30218 update test result

followup for d1a46c68cd4

b381742... by Sergei Golubchik

MDEV-11356 Option skip-core-file does not work

remove ancient hard-coded treatment of --core-file. This enables
normal my_getopt behavior for the already existing sysvar

e22a57d... by Andrei <email address hidden>

MDEV-30620 Trying to lock uninitialized LOCK_parallel_entry

The error was seen by a number of mtr tests being caused
by overdue initialization of rpl_parallel::LOCK_parallel_entry.
Specifically, SHOW-SLAVE-STATUS might find in
rpl_parallel::workers_idle() a gtid domain hash entry
already inserted whose mutex had not done
mysql_mutex_init().

Fixed with swapping the mutex init and the its entry's stack insertion.

Tested with a generous number of `mtr --repeat` of a few of the reported
to fail tests, incl rpl.parallel_backup.