maria:bb-10.5-mdev-31787

Last commit made on 2023-09-14
Get this branch:
git clone -b bb-10.5-mdev-31787 https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.5-mdev-31787
Repository:
lp:maria

Recent commits

76c897d... by Yuchen Pei <email address hidden>

MDEV-31787 MDEV-26151 Add a test exercising non-0 spider_casual_read

Also:
- clean up spider_check_and_get_casual_read_conn() and
  spider_check_and_set_autocommit()
- remove a couple of commented out code blocks

7de0c7b... by Brandon Nesterenko

MDEV-31038: rpl.rpl_xa_prepare_gtid_fail clean up

- Removed commented out and unused lines.
- Updated test to reference true failure of timeout
  rather than deadlock
- Switched save variables from MTR to user
- Forced relay-log purge to not potentially re-execute
  an already prepared transaction

9e9cefd... by Sergei Golubchik

post-merge fix

d20a4da... by Marko Mäkelä

MDEV-32150 InnoDB reports corruption on 32-bit platforms with ibd files sizes > 4GB

buf_read_page_low(): Use 64-bit arithmetics when computing the
file byte offset. In other calls to fil_space_t::io() the offset
was being computed correctly, for example by
buf_page_t::physical_offset().

a3cbc44... by sjaakola <email address hidden>

MDEV-31833 replication breaks when using optimistic replication and replica is a galera node

MariaDB async replication SQL thread was stopped for any failure
in applying of replication events and error message logged for the failure
was: "Node has dropped from cluster". The assumption was that event applying
failure is always due to node dropping out.
With optimistic parallel replication, event applying can fail for natural
reasons and applying should be retried to handle the failure. This retry
logic was never exercised because the slave SQL thread was stopped with first
applying failure.

To support optimistic parallel replication retrying logic this commit will
now skip replication slave abort, if node remains in cluster (wsrep_ready==ON)
and replication is configured for optimistic or aggressive retry logic.

During the development of this fix, galera.galera_as_slave_nonprim test showed
some problems. The test was analyzed, and it appears to need some attention.
One excessive sleep command was removed in this commit, but it will need more
fixes still to be fully deterministic. After this commit galera_as_slave_nonprim
is successful, though.

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

ef569c3... by Marko Mäkelä

MDEV-21679 fixup for s390x

Some s390x environments include
https://github.com/madler/zlib/pull/410
and a more pessimistic compressBound: (sourceLen * 16 + 2308) / 8 + 6.
Let us adjust the recently enabled tests accordingly.

384eb57... by Marko Mäkelä

MDEV-32144 Debug assertion failure w == MAYBE_NOP in mtr_t::memcpy()

trx_undo_write_trx_xid(): Silence the debug assertion by passing
a template parameter that causes us to not care that the contents of
the page did not actually change and no log record would be written.
This debug assertion could fail if XA PREPARE was executed multiple
times with the same XID.

f8f7d9d... by Marko Mäkelä

Merge 10.4 into 10.5

65c9920... by Marko Mäkelä

MDEV-23841: Memory leak in innodb_monitor_validate()

innodb_monitor_validate(): Let item_val_str() allocate the memory
in THD, so that it will be available to innodb_monitor_update().
In this way, there is no need to allocate another buffer, and
no problem if the call to innodb_monitor_update() is skipped due
to an invalid value that is passed to another configuration parameter.

There are some other callers to st_mysql_sys_var::val_str()
that validate configuration parameters that are related to FULLTEXT INDEX,
but they will allocate memory by invoking thd_strmake().

5299f0c... by Marko Mäkelä

MDEV-21664 Add opt files for have_innodb_Xk.inc

Currently include/have_innodb_4k.inc etc. files only check that the
server is running with the corresponding page size. I think it would
be more convenient if they actually enforced the setting.