maria:bb-10.6-MDEV-29880-galera

Last commit made on 2022-11-29
Get this branch:
git clone -b bb-10.6-MDEV-29880-galera https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.6-MDEV-29880-galera
Repository:
lp:maria

Recent commits

f7ee132... by Daniele Sciascia <email address hidden>

MDEV-29878 Galera test failure on MDEV-26575

Test MDEV-26575 fails when it runs after MDEV-25389. This is because
the latter simulates a failure while an applier thread is
created in `start_wsrep_THD()`. The failure was not handled correctly
and would not cleanup the created THD from the global
`server_threads`. A subsequent shutdown would hang and eventually fail
trying to close this THD.

Reviewed-by: Jan Lindström <email address hidden>

7f03cac... by sjaakola <email address hidden>

MDEV-29512 deadlock between commit monitor and THD::LOCK_thd_data mutex

This commit contains only a mtr test for reproducing the issue in MDEV-29512
The actual fix will be pushed in wsrep-lib repository

The hanging in MDEV-29512 happens when binlog purging is attempted, and there is
one local BF aborted transaction waiting for commit monitor.

The test will launch two node cluster and enable binlogging with expire log days,
to force binlog purging to happen.
A local transaction is executed so that will become BF abort victim, and has advanced
to replication stage waiting for commit monitor for final cleanup (to mark position in innodb)
after that, applier is released to complete the BF abort and due to binlog configuration,
starting the binlog purging. This is where the hanging would occur, if code is buggy

Reviewed-by: Jan Lindström <email address hidden>

e046b6d... by Daniele Sciascia <email address hidden>

Restore auto increment offset in test galera_join_with_cc_A

Reviewed-by: Jan Lindström <email address hidden>

f850b4f... by Daniele Sciascia <email address hidden>

MDEV-29880 Galera test failure on GCF-336

Fix `wsrep_table_accessible_when_detached()` so that commands that
access no tables are rejected while a node is disconnected from a
cluster.

Reviewed-by: Jan Lindström <email address hidden>

5ab77f5... by Jan Lindström

Update wsrep-lib submodule

fdc582f... by Marko Mäkelä

Merge 10.5 into 10.6

bd694bb... by Marko Mäkelä

MDEV-24412 InnoDB: Upgrade after a crash is not supported

recv_log_recover_10_4(): Widen the operand of bitwise and to 64 bits,
so that the upgrade check will work when the redo log record is located
more than 4 gigabytes from the start of the first file.

db14eb1... by Marko Mäkelä

MDEV-30106 InnoDB fails to validate the change buffer on startup

ibuf_init_at_db_start(): Validate the change buffer root page.
A later version may stop creating a change buffer, and this
validation check will prevent a downgrade from such later versions.

ibuf_max_size_update(): If the change buffer was not loaded, do nothing.

dict_boot(): Merge the local variable "error" to "err". Ignore
failures of ibuf_init_at_db_start() if innodb_force_recovery>=4.

e0d672f... by Marko Mäkelä

MDEV-30089 Metrics not incremented for 1st iteration in buf_LRU_free_from_common_LRU_list()

In commit a03dd94be804a4b8b1406696920834bb2c0bedbd as well as
mysql/mysql-server@6ef8c343445a26aaf9ebd76d72cf57db44b481f5
the iterations were changed so that the variable "scanned"
would remain 0 when the first list item qualifies for eviction.

buf_LRU_free_from_unzip_LRU_list(), buf_LRU_free_from_common_LRU_list():
Increment "scanned" when a block can be freed.

buf_LRU_free_from_common_LRU_list(): Remove a redundant condition.
Whenever this function is invoked, buf_pool.LRU should be nonempty,
hence something should always be scanned.

Thanks to Jean-François Gagné for reporting this.

183ca82... by Daniel Black

MDEV-25417: Remove innodb buffer pool load throttling

The very lightest of load would decimate any buffer pool loading
to ~1 page per second. As seen in MDEV-29343 this resulting in
a load taking over an hour on a high end system.

Since MDEV-26547 the fetching is asynchronous, however the loading
has equal access to the IO as the SQL queries.