maria:bb-10.3-MDEV-31668

Last commit made on 2023-07-12
Get this branch:
git clone -b bb-10.3-MDEV-31668 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.3-MDEV-31668
Repository:
lp:maria

Recent commits

9139f09... by Rex Johnston

MDEV-31668 Build issues with Ubuntu 20.04.6 LTS, libaio, causing slowdown

A combination of MDEV-31558: Add InnoDB engine information to the slow query log
and MDEV-31577: Make ANALYZE FORMAT=JSON print innodb stats
backported to 10.3 for testing purposes.

ca001cf... by Oleksandr "Sanja" Byelkin

New CC 3.1

55a5394... by Andrei <email address hidden>

MDEV-29621: Replica stopped by locks on sequence

When using binlog_row_image=FULL with sequence table inserts, a
replica can deadlock because it treats full inserts in a sequence as DDL
statements by getting an exclusive lock on the sequence table. It
has been observed that with parallel replication, this exclusive
lock on the sequence table can lead to a deadlock where one
transaction has the exclusive lock and is waiting on a prior
transaction to commit, whereas this prior transaction is waiting on
the MDL lock.

This fix for this is on the master side, to raise FL_DDL
flag on the GTID of a full binlog_row_image write of a sequence table.
This forces the slave to execute the statement serially so a deadlock
cannot happen.

A test verifies the deadlock also to prove it happen on the OLD (pre-fixes)
slave.

OLD (buggy master) -replication-> NEW (fixed slave) is provided.
As the pre-fixes master's full row-image may represent both
SELECT NEXT VALUE and INSERT, the parallel slave pessimistically
waits for the prior transaction to have committed before to take on the
critical part of the second (like INSERT in the test) event execution.
The waiting exploits a parallel slave's retry mechanism which is
controlled by `@@global.slave_transaction_retries`.

Note that in order to avoid any persistent 'Deadlock found' 2013 error
in OLD -> NEW, `slave_transaction_retries` may need to be set to a
higher than the default value.
START-SLAVE is an effective work-around if this still happens.

7e75f94... by Oleksandr "Sanja" Byelkin

New CC

0119990... by Sergei Golubchik

Merge branch 'merge-zlib' into 10.3

3bab137... by Sergei Golubchik

1.2.13

4c4939b... by Sergei Golubchik

MDEV-30818 invalid ssl prevents bootstrap

in bootstrap the server reads stdin and does not listen to network.
it won't use ssl anyway

fb7d588... by Sergei Golubchik

main.bootstrap test cleanup

e62947f... by Sergei Golubchik

bump the VERSION

2743a51... by Oleksandr "Sanja" Byelkin

Merge branch '10.3' into bb-10.3-release