maria:bb-10.3-MDEV-27691

Last commit made on 2022-09-12
Get this branch:
git clone -b bb-10.3-MDEV-27691 https://git.launchpad.net/maria

Branch merges

Branch information

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

Recent commits

8aa9856... by Lena Startseva <email address hidden>

MDEV-27691: make working view-protocol

Tests with checking metadata or that cannot be run with
the view-protocol are excluded from --view-protocol.
For tests that do not allow the use of an additional connection,
the util connection is disabled with "--disable_service_connection".
Also cases with bugs for --view-protocol are disabled.

99d5306... by Oleksandr "Sanja" Byelkin

MDEV-27691: prequisite enable/disable service connection

667df98... by Marko Mäkelä

MDEV-29507 InnoDB: Failing assertion: table->n_rec_locks == 0

lock_place_prdt_page_lock(): Do not place locks on temporary tables.
Temporary tables can only be accessed from one connection, so
it does not make any sense to acquire any transactional locks on them.

43745b7... by Vlad Lesin

MDEV-29433 innodb.lock_delete_updated is unstable

Use suspend thread syncpoint instead of include/wait_condition.inc to
make sure DELETE created waiting lock before the next UPDATE begins
locking.

This is backport of commit 0fa4dd0747bb12479662952e7fe6ae2fffff737b
from 10.6.

04899d6... by Tuukka Pasanen <email address hidden>

MDEV-28605: Change wrong plugin config installation location (#2160)

Preset include directory for configuration files below MariaDB 10.5 is
/etc/mysql/conf.d

Change installation location wrong plugin installation location from
/etc/mysql/mariadb.d to default include directory /etc/mysql/conf.d.
Change makes gssapi-server, oqgraph, rocksdb and tokudb plugins
loading work after installation

NOTE TO MERGERS: This commit should be upstream to MariaDB 10.4 only!
Merging to MariaDB 10.5 and above leads to major problems.

ac49b7a... by THIRUNARAYANAN BALATHANDAYUTHAPANI

MDEV-29342 Assertion failure in file que0que.cc line 728

- During shutdown, InnoDB fts fails to update synced doc id
when there is only one doc id about to sync. While starting
the server, InnoDB fetches the already synced doc id from
config table. In the subsequent sync operation, InnoDB fails
with DB_DUPLICATE_KEY error.

f501f81... by Andrei <email address hidden>

MDEV-28827 Minor unsafe statement warning message improvement

The replication unsafe warning's pattern gets corrected in the
punctuation part.

4781201... by Brandon Nesterenko

MDEV-28530: Revoking privileges from a non-existing user on a master breaks replication on the slave in the presence of replication filters

Problem:
========
Replication can break while applying a query log event if its
respective command errors on the primary, but is ignored by the
replication filter within Grant_tables on the replica. The bug
reported by MDEV-28530 shows this with REVOKE ALL PRIVILEGES using a
non-existent user. The primary will binlog the REVOKE command with
an error code, and the replica will think the command executed with
success because the replication filter will ignore the command while
accessing the Grant_tables classes. When the replica performs an
error check, it sees the difference between the error codes, and
replication breaks.

Solution:
========
If the replication filter check done by Grant_tables logic ignores
the tables, reset thd->slave_expected_error to 0 so that
Query_log_event::do_apply_event() can be made aware that the
underlying query was ignored when it compares errors.

Note that this bug also effects DROP USER if not all users exist
in the provided list, and the patch fixes and tests this case.

Reviewed By:
============
<email address hidden>

e4cffc9... by Nayuta Yanagisawa

MDEV-27172 Prefix indices on Spider tables may lead to wrong query results

Spider converts HA_READ_KEY_EXACT to the equality (=) in the
function spider_db_append_key_where_internal() but the conversion
is not necessarily correct for tables with prefix indices.

We fix the bug by converting HA_READ_KEY_EXACT to 'LIKE "foo%"' when
a target key is a prefix key. The fix is partly inspired by FEDERATED.
See ha_federated::create_where_from_key() for more details.

4f2dc71... by Marko Mäkelä

MDEV-13668 fixup: Remove test work-arounds