Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Console View


Categories: connectors experimental galera main
Legend:   Passed Failed Warnings Failed Again Running Exception Offline No data

connectors experimental galera main
Sergei Golubchik
MDEV-39676 disallow global.wsrep_sst_donor=NULL again

it crashes in galera.mdev-28433
Alexey Botchkov
MDEV-42392 XMLISVALID: attribute on xs:anyType element ends validation of that element, invalid XML accepted.

Push the st->annotation for attribute of the anyType.
Vladislav Vaintroub
Merge 12.3 into 13.2
Jan Lindström
Set version to 10.4.34-6442
Elena Stepanova
MDEV-42590 rpl.rpl_start_alter_restart_master leaves replication setup behind
Sergei Golubchik
MDEV-39676 disallow global.wsrep_sst_donor=NULL again

it crashes in galera.mdev-28433
Vladislav Vaintroub
Merge 11.8 into 12.3
Vladislav Vaintroub
GnuTLS: report a failed send as CR_SERVER_LOST

GNUTLS_E_PUSH_ERROR was reported as 'Error in the push function.', without
the system error. It means the peer closed the connection, which is how
the OpenSSL backend reports it (CR_SERVER_LOST with errno).

Assisted-by: Claude:claude-sonnet-5-5
  • cc-x-codbc-windows: 'dojob pwd if '3.4' == '3.4' ls win32/test SET TEST_DSN=master SET TEST_DRIVER=master SET TEST_PORT=3306 SET TEST_SCHEMA=odbcmaster if '3.4' == '3.4' cd win32/test if '3.4' == '3.4' ctest --output-on-failure' failed -  stdio
Vladislav Vaintroub
Merge 3.3 into 3.4
  • cc-x-codbc-windows: 'dojob pwd if '3.4' == '3.4' ls win32/test SET TEST_DSN=master SET TEST_DRIVER=master SET TEST_PORT=3306 SET TEST_SCHEMA=odbcmaster if '3.4' == '3.4' cd win32/test if '3.4' == '3.4' ctest --output-on-failure' failed -  stdio
Teemu Ollakka
MDEV-42510 Galera: mariabackup and SST copy corrupt Aria tables

ha_commit_trans() did not take MDL_BACKUP_COMMIT for wsrep threads. A
commit that the provider does not order, such as a local write to an
Aria table or a TOI such as GRANT, was not held by the provider pause.
It committed during BACKUP STAGE BLOCK_COMMIT, and mariabackup or the
SST joiner got a corrupt Aria table.

MDL_lock::can_grant_lock() granted every backup lock to TOI and
appliers unless wsrep_mode=BF_ABORT_MARIABACKUP. This is wrong when
the lock holder does not pause the provider: at BACKUP STAGE FLUSH,
and on a mariabackup SST donor. With BF_ABORT_MARIABACKUP, FTWRL and
BLOCK_COMMIT took their lock, then paused, and the pause waited for a
write that waited for the lock.

UNLOCK TABLES and BACKUP STAGE END released the backup lock before
they resumed the provider. A TOI that waited for the lock then failed
with ER_UNKNOWN_COM_ERROR.

Changes:
- ha_commit_trans(): a commit that the provider does not order takes
  MDL_BACKUP_COMMIT.
- MDL_lock::can_grant_lock(): remove the grant of backup locks to TOI
  and appliers. In the BACKUP namespace, a BF request does not wait
  behind pending requests: a pending backup lock can wait for a local
  commit that waits for the BF thread in the provider order.
- wsrep_handle_mdl_conflict() returns true if the granted ticket does
  not block the requester. A backup lock does not block a BF request
  if its holder pauses the provider: the pause waits for the request.
- wsrep_backup_pause() marks the holder, lets the BF threads that wait
  for the backup lock get it (MDL_ticket::reschedule_waiters()), then
  pauses. FTWRL and BACKUP STAGE use it.
- UNLOCK TABLES and BACKUP STAGE END resume the provider, then release
  the backup lock.

Tests:
- galera_backup_lock_window.inc, galera_sst_backup_lock_write.inc:
  remove the skip logic for rounds that deadlocked or failed an
  assertion. Record the outcomes of these rounds with
  BF_ABORT_MARIABACKUP.
- galera_backup_block_commit_bf_deadlock: node 1 is killed after the
  MyISAM write, so suppress the repair messages.
- galera_ftwrl_concurrent: in case 2, the second BACKUP STAGE START
  waits until BACKUP STAGE END releases the backup lock.
- galera_ftwrl_pending_bf: new test. An applier does not wait behind
  a pending FTWRL.

Decision needed:
- A session with wsrep_on=OFF that runs FTWRL or BACKUP STAGE does not
  pause the provider. TOI and appliers now wait for its backup lock.
  The node is not desynced, so flow control can stall the cluster.
  Before this change, without BF_ABORT_MARIABACKUP, they ignored the
  lock. Pause the provider for such a session, or accept the wait.

Open points:
- With BF_ABORT_MARIABACKUP, a DDL or a non-transactional write that
  waits during BLOCK_DDL runs when BLOCK_COMMIT pauses. mariabackup
  can have copied those files already. The other choices are a
  deadlock or an abort, and the provider pause cannot be aborted.
- BACKUP STAGE FLUSH holds applied writes to non-transactional tables.
  The node is not desynced, so a long FLUSH can stall the cluster.
- Error paths that existed before: the provider stays paused if the
  WAIT_DDL upgrade fails after the pause; the WAIT_COMMIT lock stays
  if the pause fails at BLOCK_COMMIT; FTWRL continues if the pause
  fails.
- Two concurrent FTWRL or BACKUP STAGE statements can still deadlock
  in rare cases: the grant depends on the holder that conflicts.
- THD::wsrep_desynced_backup_stage is a plain bool that other threads
  read. No wakeup is lost, but TSAN can report it.
- galera_backup_lock_deadlock.inc kills node 1 also when there is no
  deadlock.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
MDEV-42570 rpl.rpl_start_alter_restart_master fails when run in a chain of tests

The test shows the slave binary log from the beginning, including
the replicated mtr.add_suppression() transaction. How that transaction
ends in the slave binary log depends on the engine of
mysql.gtid_slave_pos, because the slave updates the table within
the same transaction. With Aria (the default under MTR) it ends with
Query COMMIT. With InnoDB, InnoDB takes part in the transaction and
it ends with Xid COMMIT.

Many replication tests change mysql.gtid_slave_pos to InnoDB and
don't restore it, for example rpl_start_alter_mysqlbinlog_1, and
check-testcase does not check table engines. When mtr reuses
the servers after such a test, the result mismatches. The test
passes after a restart or with --repeat, because then the table
is in Aria.

Set the engine of mysql.gtid_slave_pos on the slave to Aria
explicitly at the beginning of the test, so that the result
does not depend on previous tests.

Assisted-by: Claude:claude-opus-5-5
zeyad zahran
MDEV-40743 slave does not retry connect in some cases even when master_retry_count=0 is set

try_to_reconnect() compared retry_count with master_retry_count without
exempting 0, so 0 acted like 1. If connecting worked but the setup or
reading after it failed twice with no event in between, the I/O thread
exited without any error.

Skip the limit when master_retry_count is 0, like connect_to_master()
does. Non-zero values keep working as before.
Vladislav Vaintroub
GnuTLS: report a failed send as CR_SERVER_LOST

GNUTLS_E_PUSH_ERROR was reported as 'Error in the push function.', without
the system error. It means the peer closed the connection, which is how
the OpenSSL backend reports it (CR_SERVER_LOST with errno).

Assisted-by: Claude:claude-sonnet-5-5
Elena Stepanova
Try running without a crafted case-sensitive directory
Hemant Dangi
MDEV-39648: wsrep_sst_rsync.sh: apply safe() to joiner-supplied parameters

Issue:
wsrep_sst_rsync.sh interpolated WSREP_SST_OPT_REMOTE_USER and
WSREP_SST_OPT_REMOTE_PSWD verbatim. Because both values originate from
the joiner side of the SST request, a newline in either could splice
an extra directive into the donor-written stunnel.conf (silently
downgrading peer-cert verification) or an extra line into the rsync
magic file. MDEV-39413 had introduced safe() for the same threat class
in wsrep_sst_mariabackup but did not extend it to the rsync script.

Solution:
Routing the rsync interpolations through safe() closes the gap, and
extending safe() to also reject tab and newline ensures multi-line
values cannot survive into a config-file heredoc.
Elena Stepanova
Merge remote-tracking branch 'origin/bb-10.11-elenst' into bb-11.4-elenst
Elena Stepanova
MDEV-42198 Options from MTR opt files are added multiple times

Options from .opt files of included files were appended every time
the file was sourced, so they got repeated once per include path.
It caused unnecessary server restarts, and too long server command
lines lead to startup failures on Windows.

Now each file caches only its own .opt options plus an ordered list
of the files (itself and everything it sources) whose options apply,
each file listed once. The test's options are assembled from that list.
Options of included files still precede those of the including file.
If a file is sourced several times, its options are applied at the
place of its last inclusion, so the effective option values stay
the same as before, and a test can still source a file again to
override options set by files sourced in between.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Alice Sherepa
Elena Stepanova
rpl.rpl_corrupted_decimal_precision fails with timeout

Due to MDEV-42580, if an earlier test ever set a replication filter,
the SQL abort expected in rpl.rpl_corrupted_decimal_precision
never happens, and the test fails with a timeout. To avoid it,
temporarily enforce the slave restart at the beginning of the test.
It should be removed when the bug is fixed
Vladislav Vaintroub
Merge 13.2 into main
Elena Stepanova
MDEV-42237 rpl.rpl_read_old_relay_log_info fails on Windows (Linux-style path)

rpl.rpl_read_old_relay_log_info fails because the test overrides
relay-log.info with the Linux-style ./slave-relay-bin.000001,
while Windows uses the format with backslashes, .\slave-relay-bin.000001.
The patch modifies the file contents using a perl block, which keeps
the relay log name intact and only replaces the position. Thus the name
remains valid for whatever system the test is run on.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Vladislav Vaintroub
Fix 11.8 build with system PCRE2 on FreeBSD

import_util linked the bare pcre2-posix/pcre2-8 libraries and got no
include directory, so pcre2posix.h was not found.
Jan Lindström
Set version to 10.4.34-6442
Elena Stepanova
MDEV-42202 perfschema.relaylog fails when run after other replication tests

The test checks file I/O instrumentation accumulated since server
startup, so it relied on getting freshly started servers. With
duplicate options removed, mtr may now reuse servers left by
a previous replication test, and the test sees binary/relay log
files and statistics from it.

Restart both servers at the beginning of the test, removing
binary and relay logs while the servers are down. RESET MASTER
and RESET SLAVE are not sufficient, as performance schema keeps
instances of files deleted by them, and a restart opens a new
binary log anyway.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Vihaan Jain
Cherry-pick 0e6964284c0 to 12.3

MDEV-41927 MASTER_DEMOTE_TO_SLAVE is rejected as an unquoted column identifier

Add MASTER_DEMOTE_TO_SLAVE_SYM to keyword_func_sp_var_and_label in
sql/sql_yacc.yy so that MASTER_DEMOTE_TO_SLAVE and
MASTER_DEMOTE_TO_REPLICA can be used as unquoted identifiers (table
names, column names, aliases), consistent with neighboring
replication options.
Elena Stepanova
MDEV-41085 Enable MTR tests on Windows: rpl suite
Elena Stepanova
MDEV-42586 rpl.warn_slaves_not_needed_for_purge fails when run in a chain of tests

The warning about the @@slave_connections_needed_for_purge default is
printed only once per server process: warn_slaves_not_needed_for_purge
is cleared by the first COM_REGISTER_SLAVE and whenever the variable is
set, either on the command line or with SET.

The test assumed the flag was still set when it started. MTR reuses
running servers between tests, so after a previous test whose slave
connected to the master, or after the test itself (it ends with
SET @@GLOBAL.slave_connections_needed_for_purge= DEFAULT), the flag was
already cleared. The warning was then never logged in this test's section
of the error log, and both expected-FOUND checks failed. This happened
with --repeat and when the test ran after another replication test.

Restart the master at the beginning of the test, before the slave
connects, so the test always starts with the flag set.

Assisted-by: Claude:claude-opus-5-5
Elena Stepanova
Collect system info, remove lowercase-table-names from command line
zeyad zahran
Cherry-pick c803b98864d to 12.3

MDEV-40743 slave does not retry connect in some cases even when master_retry_count=0 is set

try_to_reconnect() compared retry_count with master_retry_count without
exempting 0, so 0 acted like 1. If connecting worked but the setup or
reading after it failed twice with no event in between, the I/O thread
exited without any error.

Skip the limit when master_retry_count is 0, like connect_to_master()
does. Non-zero values keep working as before.
Elena Stepanova
MDEV-42200 main.mysqlbinlog_stmt_compressed depends on previous tests

The test ran mysqlbinlog on the current binlog file from the start,
and if that file still held the previous test's events, it would
cause a mismatch. Additionally, thread_id value depended on the
chain of tests.

The part for thread_id is taken from 11.8, to preserve consistency.

Assisted-by: Claude:claude-sonnet-5-5
Reviewed-by: Kristian Nielsen
Elena Stepanova
MDEV-42228 MTR tests fail with "File already exist" for .expect files on Windows

On Windows mtr workers are threads of one process, so a handle opened
while reading the .expect file could be inherited by a server spawned
at the same time by another worker. That kept the file from being
deleted for the lifetime of that server, and the next --write_file of
the .expect file failed with "File already exist".

Read the .expect file under the spawn lock.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Vladislav Vaintroub
Elena Stepanova
MDEV-42567 rpl.rpl_change_master_implicit_gtid_warning fails with "Can't initialize replace" when run after another test

The test stopped the slave right after include/master-slave.inc and
then built CHANGE MASTER coordinates from SHOW SLAVE STATUS. But
master-slave.inc only waits for Slave_IO_Running=Yes, which the IO
thread reports right after sending COM_BINLOG_DUMP, before it has
received anything from the master. If STOP SLAVE arrives before the
master's initial fake Rotate event, Master_Log_File is still empty
and --replace_result fails with
"Can't initialize replace from 'replace_result $io_log_file ...'".

The race is lost reliably when the test runs after another
replication test (e.g. with --repeat) over a non-TLS replication
connection, which is the default in 10.11. There the master's dump
thread from the previous test is still waiting for binlog updates
when the slave reconnects, and kill_zombie_dump_threads() delays the
new dump by at least 100 ms. With TLS replication (the default in
11.4+) the old dump thread is already gone and the test passes;
11.4 with --skip-ssl fails the same way as 10.11.

Fix: sync the slave with the master before stopping it, so that the
IO thread has read the master's initial events and Master_Log_File
and Read_Master_Log_Pos are populated. The result file is unchanged.

Assisted-by: Claude:claude-opus-5-5
Hemant Dangi
MDEV-39721: wsrep_notify.cc: reject shell-unsafe characters in joiner-supplied member fields

Issue:
wsrep_notify_status() interpolated members[i].name() (the peer's
wsrep_node_name) and members[i].incoming() verbatim into a command
string that is then executed via 'sh -c' by wsp::process. A peer
joining the cluster with shell metacharacters in its wsrep_node_name
or wsrep_node_incoming_address caused arbitrary commands to run on
every cluster member that had wsrep_notify_cmd configured.
MDEV-39413 introduced safe() for the same threat class in the SST
scripts but did not cover the C++ wsrep_notify path.

Solution:
Validate each substituted field against a narrow whitelist before
interpolating. Node name allows alnum and -_. ; node address
additionally allows :[]/ for host:port and [ipv6] forms. On bad
input the notification is skipped with an error log instead of
forwarding the unsafe value to sh -c.
Elena Stepanova
MDEV-42236 rpl.rpl_change_master_long_channel_name fails on Windows (too long path)

rpl.rpl_change_master_long_channel_name fails on Windows because it
expects a 252-character name (base name, excluding the path) to be
valid; on Windows the whole path is limited to 260 characters, so
a 252-character name makes it too long. The patch disables the test
for Windows.

Reviewed-by: Susil Behera
Mohammad Tafzeel Shams
MDEV-37685 : BtrBulk compression level changes during bulk load cause index inconsistency

BtrBulk::finish() copies the records of the single top-level page into
the root page of the index and compresses the root page again.
PageBulk::compress() read the global innodb_compression_level on every
call. If SET GLOBAL innodb_compression_level lowered the level between
the compression of the top-level page and that of the root page, the
root page could fail to compress although the identical top-level page
had been compressed successfully. BtrBulk::pageSplit() would then split
the root page, giving it a right sibling and a parent page that is not
reachable from the data dictionary.

Fix:
BtrBulk::m_compression_level: innodb_compression_level at the start
of the bulk load, used for compressing every page.

PageBulk::compress(): Take the compression level as a parameter.

BtrBulk::finish(): Add the DEBUG_SYNC point btr_bulk_finish_before_root
for the test.
Alexey Botchkov
MDEV-42389 XMLISVALID: stack overflow in XMLSchema_std_attributes::validate_attr with circular xs:attributeGroup.

check the attributeGroup for possible circular references or nesting
being too long.
Khaled Riyad
MDEV-10584 Obscure plain text passwords from server logs

Plain text passwords in SQL statements were written as is to the
general log, the slow log and the replica error message.

The lexer now records the raw range of each text literal, and the
grammar marks the ones that are passwords. After parsing, a copy of
the statement with each password replaced by `<secret>` is used by
these logs. Prepared statements and stored routine statements keep
their own copy.

To mask each statement, the general log is now written after parsing,
one row per statement of a multi-statement packet. The row of `PREPARE`
and `EXECUTE IMMEDIATE` shows the source as `<secret>` when it holds a
password. A statement that fails to parse is written to neither the
general nor the slow log, as it may hold a password.

`--log-raw` turns masking off and writes the general log before
parsing, as before.
Elena Stepanova
MDEV-42238 rpl.rpl_row_mysqlbinlog fails on Windows (charset problem)

rpl.rpl_row_mysqlbinlog fails because apparently the client command
line on Windows cannot interpret the literal cp932 string which is
passed to it. Since the point of the test is not how the original
INSERT happens, but how it further works while replaying the binlog,
it should be acceptable to insert a hex-encoded value

Reviewed-by: Susil Behera
Jan Lindström
MDEV-42493 : Galera test failure on galera_toi_definer_check

Since MDEV-29668 (11.0) only SET USER, not SUPER, satisfies the
DEFINER check, so the error message lists only SET USER. The test
was recorded on 10.11. Update the result file.
forkfun
MDEV-41935 STR_TO_DATE returns NULL only when en_US locale is omitted under utf8mb4_bin

STR_TO_DATE() with month or day names (%M %b %W %a) and no locale
argument returned NULL with warning 1411 when the value had a
case-sensitive collation: utf8mb4_bin, *_cs, turkish_ci or VARBINARY.
Names are now compared in utf8mb4_general_ci whatever the collation of
the value, as in TO_DATE().

Since MDEV-26112, opening a table created before 12.3.2 failed with
error 1901 if a CHECK constraint, a STORED column or an indexed
VIRTUAL column used a two-argument STR_TO_DATE(). Names in these
tables are read as English: 'en_US' is added as the third argument,
SHOW CREATE TABLE shows it, and CHECK and REPAIR TABLE keep it.
A two-argument STR_TO_DATE() is allowed again in such columns if its
format has no names; with names, a CREATE from an older server's dump
still fails.

Also:
- name matching: the longest name wins, a complete name needs no word
  boundary after it ('01Jan2026'), and standalone and formatting month
  names are tried together (fi_FI 'marraskuuta'); an ambiguous prefix
  gives NULL (fi_FI 'Mar', pl_PL 'S'), and English does not decide it
- combining marks after a letter are skipped, so NFC and decomposed
  spellings match ('Tháng bảy' in vi_VN gave month 3 or NULL)
- English names are accepted in the session locale, as before
  MDEV-26112; not with an explicit locale, nor in TO_DATE()
- no SIGSEGV for a utf16/utf32 value with a binary format
- a prepared statement no longer keeps the locale of a previous run
- the locale argument is left out of collation aggregation
- a utf8mb4 or binary value is no longer copied per row; an 8-bit one
  is converted
- fa_AF had the locale number 125 of uz_Latn_UZ; now 130, also in
  INFORMATION_SCHEMA.LOCALES
- not fixed here: the sql_mode dependency of STR_TO_DATE() in generated
  columns (MDEV-42461)

Assisted-By: Claude:claude-opus-5-5