maria:bb-10.4-MDEV-27238

Last commit made on 2021-12-15
Get this branch:
git clone -b bb-10.4-MDEV-27238 https://git.launchpad.net/maria

Branch merges

Branch information

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

Recent commits

831b216... by Sergei Krivonos <email address hidden>

MDEV-27238: detecting Json_writer_struct nesting issues

20f22df... by Monty <email address hidden>

Fixed some tests that failes when built with valgrind

Example build: ./BUILD/compile-pentium64-valgrind-max

Fixes:
- sp-no-valgrind failed if binary was built for valgrind as in this case
  mem_root is allocated in very small hunks which the test cannot handle.
  Fixed by testing of valgrind build
- truncate_notembedded failed in reap because of more memory used.
  Fixed by allowing reap to fail too

607b14c... by Monty <email address hidden>

Add --optimizer_trace option to mysqltest

This enables optimizer_trace output for the next SQL command.
Identical as if one would have done:
- Store value of @@optimizer_trace
- Set @optimizer_trace="enabled=on"
- Run query
- SELECT * from OPTIMIZER_TRACE
- Restore value of @@optimizer_trace

This is a great time saver when one wants to quickly check the optimizer
trace for a query in a mtr test.

3691cc1... by Monty <email address hidden>

MDEV-18187 Aria engine: Redo phase failed with "error 192 when executing record redo_index_new_page" upon startup on a restored datadir

The issue is that when recovery is about to create a new data or index
page it check if the page already exits.
If the page does not exists (file is too short) or contains wrong checksum,
then the recovery code will recreate the page.
The bug was that the code that checked if the page existed didn't take
into account encrypted pages.

Fixed by adding a check if page could not be encrypted solved the issue.
I also added some code to silence decryption errors for new pages.

Test case and some inspiration for how to solve this come from
the pull request by alexandr.miloslavsky

dda0bfa... by Julius Goryavsky <email address hidden>

MDEV-27181: Galera SST scripts should use ssl_capath for CA directory

1. Galera SST scripts should use ssl_capath (not ssl_ca) for CA
   directory. The current implementation tries to automatically
   detect the path using the trailing slash in the ssl_ca variable
   value, but this approach is not compatible with the server
   configuration. Now, by analogy with the server, SST scripts
   also use a separate ssl_capath variable. In addition, a similar
   tcapath variable has been added for the old-style configuration
   (in the "sst" section).
2. Openssl utility detection made more reliable.
3. Removed extra spaces in automatically generated command lines -
   to simplify debugging of the SST scripts.
4. In general, the code for detecting the presence or absence of
   auxiliary utilities has been improved - it is made more reliable
   in some configurations (and for shells other than bash).

66b492f... by sjaakola <email address hidden>

Fix for the test galera.galera_UK_conflict

mtr test galera.galera_UK_conflict, has rather distorted logic in test scenario 2.

The test would fail always with:

CURRENT_TEST: galera.galera_UK_conflict
mysqltest: In included file "./include/galera_wait_sync_point.inc":
included from /home/seppo/work/wsrep/mariadb-server/mysql-test/suite/galera/t/galera_UK_conflict.test at line 216:
At line 3: query 'SET SESSION wsrep_on = 0' failed: 1179: You are not allowed to execute this command in a transaction

This happens because wait_condition is called in wrong connection (node_1, which is excuting MST transaction)

This test is fixed by using contl connection for wait contdition check, and new result is recorded as well

74b3d42... by sjaakola <email address hidden>

MDEV-27218 mtr test galera.MDEV-20793 has sporadic false positive failures

Fixes to make the galera.MDEV-20793 test deterministic.
Specifically, after --send COMMIT, there is now a sync point to catch a known state of the COMMIT execution

5e81488... by Larysa Sherepa

minor cleanup of backup_lock_binlog.test, so that test passes also with statement binlog format

5c8e628... by Alexey Yurchenko <email address hidden>

wsrep-lib update: bugfixes, cleanups, event API, state transition cleanups

Don't switch state to DONOR in `wsrep_sst_donate()` - wsrep-lib does it now

e8a91c1... by Sergei Golubchik

Merge branch '10.3' into 10.4