maria:bb-10.4-MDEV-31173-galera

Last commit made on 2023-08-08
Get this branch:
git clone -b bb-10.4-MDEV-31173-galera https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.4-MDEV-31173-galera
Repository:
lp:maria

Recent commits

02ac548... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-31173 : Server crashes when setting wsrep_cluster_address after adding invalid value to wsrep_allowlist table

Problem was that wsrep_schema tables were not marked as
category information. Fix allows access to wsrep_schema
tables even when node is detached.

This is 10.4-10.9 version of fix.

Signed-off-by: Julius Goryavsky <email address hidden>

277968a... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-31413 : Node has been dropped from the cluster on Startup / Shutdown with async replica

There was two related problems:

(1) Galera node that is defined as a slave to async MariaDB
master at restart might do SST (state stransfer) and
part of that it will copy mysql.gtid_slave_pos table.
Problem is that updates on that table are not replicated
on a cluster. Therefore, table from donor that is not
slave is copied and joiner looses gtid position it was
and start executing events from wrong position of the binlog.
This incorrect position could break replication and
causes node to be dropped and requiring user action.

(2) Slave sql thread might start executing events before
galera is ready (wsrep_ready=ON) and that could also
cause node to be dropped from the cluster.

In this fix we enable replication of mysql.gtid_slave_pos
table on a cluster. In this way all nodes in a cluster
will know gtid slave position and even after SST joiner
knows correct gtid position to start.

Furthermore, we wait galera to be ready before slave
sql thread executes any events to prevent too early
execution.

Signed-off-by: Julius Goryavsky <email address hidden>

b54e4bf... by Christian Hesse

update galera_new_cluster to use environment file

Now that the systemd unit files use an environment file to pass
_WSREP_START_POSITION we have to update galera_new_cluster as well.

6c40590... by Christian Hesse

use environment file in systemd units for _WSREP_START_POSITION

We used to run `systemctl set-environment` to pass
_WSREP_START_POSITION. This is bad because:

* it clutter systemd's environment (yes, pid 1)
* it requires root privileges
* options (like LimitNOFILE=) are not applied

Let's just create an environment file in ExecStartPre=, that is read
before ExecStart= kicks in. We have _WSREP_START_POSITION around for the
main process without any downsides.

ab10a67... by Sergei Golubchik

MDEV-31092 mysqldump --force doesn't ignore error as it should

failed SHOW CREATE FUNCTION means we don't dump this function,
but should still try to dump all other functions

4dd38f9... by Sergei Golubchik

MDEV-31800 Problem with open ranges on prefix blobs keys

don't construct open ranges from prefix blob keys for < (less than)
just as it's already done for > (greater than)

because prefix KEY_PART doesn't create prefix Field for blobs
(see open_table_from_share() near "Create a new field for the key part"),
so stored_field_cmp_to_item() will compare the original field to the
value not taking the prefix length into account.

4da80a4... by Sergei Golubchik

Fix double definition of CRYPTO_cleanup_all_ex_data

69b118a... by midenok

Revert "MDEV-30528 Assertion in dtype_get_at_most_n_mbchars"

This reverts commit add0c01bae4cd2ed435755feb1240a5dbc1c85c1

Duplicates must be avoided in FTS_DOC_ID_INDEX

f182de2... by Marko Mäkelä

MDEV-30159 fixup: Plug a memory leak in the test

a4b9e9b... by Kristian Nielsen

Fix rpl.rpl_rotate_logs to work with --repeat

(It's not using include/rpl_init.inc, so it needs to reset the GTID position
explicitly).

Signed-off-by: Kristian Nielsen <email address hidden>