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
xnervwang
MDEV-41651 mariadb_dyncol_list_named() leaks the result array when a column name cannot be read

Same fix as Connector/C CONC-864.

Co-authored-by: Georg Richter <[email protected]>
Elena Stepanova
MDEV-42521 Replication tests fail with ER_BINLOG_IN_USE when run after another test

12.3 changed RESET MASTER. The binlog-in-engine commit (7081f2a58ec)
added a check in MYSQL_BIN_LOG::reset_logs() in sql/log.cc. RESET MASTER
now fails with ER_BINLOG_IN_USE while any binlog dump thread is still
registered, even an idle one whose slave has already disconnected. Before
12.3, such leftover threads didn't block it, so the test passes there.

That commit also updated the test framework for this:
include/rpl_init.inc and include/rpl_reset.inc now kill dump threads
before RESET MASTER, and there is a new include/reset_master.inc
that kills them and retries. The fix is to use this include.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Maximilian Krög
MDEV-41836 Wrong result for indexed column = constant with fractional part

With ref access on an index, test_if_ref() removed the condition
"field = const" if storing the constant into the key field succeeded.
But some Field::store() methods round or truncate the value without
reporting an error, e.g. 46.5 stored into an INT column becomes 47.
The ref lookup then found rows with the rounded value, and the WHERE
check that would reject them had been removed.

Affected are integer, DECIMAL, DATETIME and TIME columns compared with
constants that have more precision than the column, e.g.
  int_col = 46.5, int_col = '46.5', dec_col_5_1 = 1.25,
  datetime_col = '2001-01-01 10:00:00.5'

Fix: remove the condition only if the stored value compares equal to
the constant (stored_field_cmp_to_item(), as the range optimizer does).
Integer constants stored into integer fields without an error are
exact, so the extra check is skipped for them. Notes and warnings from
the comparison are suppressed.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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
Reviewed-by: Susil Behera
Yuchen Pei
MDEV-25848 Index scalars and nested arrays like MEMBER OF does

MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a
scalar document as a 1-element array (boxing) and looks into nested
arrays (flattening). The array index only indexed the top-level
elements of a top-level array, and returned an ignorable error
otherwise. This caused INSERT IGNORE to store a row that MEMBER OF
matches but the index does not.

In this patch we index every scalar of the document at any array
depth, a scalar document as one entry, and skip objects. SQL NULL is
not an error any more either: it has no entries.

This closes finding #5.
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
Elena Stepanova
MDEV-42595 rpl.rpl_heartbeat modifies master_heartbeat_period, affects following tests

mysql-test/include/rpl_heartbeat.inc does
change master to ..., master_ssl_verify_server_cert=0, master_heartbeat_period= 0.5;
and its cleanup never puts it back.

13.x changed how CHANGE MASTER treats the heartbeat period, which
exposes the leak. In 10.11 any CHANGE MASTER that doesn't mention
MASTER_HEARTBEAT_PERIOD resets it to slave_net_timeout/2. In 13.x
the period is now an optional value. An unmentioned option stays
as it was. The between-test check doesn't catch it.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Mohammad Tafzeel Shams
MDEV-39647: Deleted Virtual secondary records might never get purged

Virtual column values are not stored in the clustered index. To check
whether a secondary index record that includes a virtual column can be
purged, row_purge_vc_matches_cluster() and row_vers_build_cur_vrow_low()
read those values from the undo log by invoking
trx_undo_prev_version_build() with TRX_UNDO_PREV_IN_PURGE.

Since MDEV-24402, this read was skipped if purge_sys.end_view saw the
transaction. That happens as soon as a purge batch has ended inside the
undo log of the transaction, even though the remaining undo log records
of the transaction have not been freed. With no values to compare,
row_purge_vc_matches_cluster() assumed a match, row_purge_is_unsafe()
returned true, and the delete-marked secondary index record was never
removed. CHECK TABLE...EXTENDED reported "Clustered index record not
found".

Changes:

- trx_undo_prev_version_build(): For TRX_UNDO_PREV_IN_PURGE, always read
the undo log record, using purge_sys_t::view_guard::PURGE. Only purge
tasks set this flag. The callers never read past the undo log record
being purged, and purge only frees undo log records before purge_sys.head.

- innodb.purge_secondary updates an indexed virtual column several
times in one transaction, with innodb_purge_batch_size=1 so that its
undo log is purged across several batches. CHECK TABLE...EXTENDED
must not report any leftover secondary index records.
Elena Stepanova
Merge 10.11 into 11.4
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
Reviewed-by: Susil Behera
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
Yuchen Pei
MDEV-25848 Index scalars and nested arrays like MEMBER OF does

MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a
scalar document as a 1-element array (boxing) and looks into nested
arrays (flattening). The array index only indexed the top-level
elements of a top-level array, and returned an ignorable error
otherwise. This caused INSERT IGNORE to store a row that MEMBER OF
matches but the index does not.

In this patch we index every scalar of the document at any array
depth, a scalar document as one entry, and skip objects. SQL NULL is
not an error any more either: it has no entries.

This closes finding #5.
forkfun
MDEV-42222 String copy must not share a buffer owned by the original

A copy of a String pointed to the buffer of the original and kept its
capacity without owning the buffer. Condition pushdown copies items
with shallow_copy(): all String members of the copy, and
Arg_comparator::value1/value2 of a copied comparison, shared the
buffers of the original item. When the original item reallocated
a buffer for a longer value, the copy kept using the freed one,
e.g. UPPER, CAST(.. AS CHAR), STR_TO_DATE and JSON_EXTRACT
comparison on 2nd execution of a prepared statement.

The copy constructor of a String that owns a non-empty buffer copies
the data now, and keeps the copy read-only if the original was marked
with mark_as_const().

Not changed: assignment, and a copy of a String that doesn't own its
buffer. Such a copy still points to the same data, also when the data
is in the buffer of a third String.

Item_param::value_clone_item() made a local copy of the parameter
value, and the new Item_string pointed into it. It uses the value
directly now.

SFORMAT copied every String argument twice per row. It passes them by
reference now, to avoid copying the data.

Tests: main.in_subq_cond_pushdown, main.ctype_ucs and
main.derived_cond_pushdown.

Assisted-By: Claude:claude-sonnet-5-5
Yuchen Pei
MDEV-25848 Index scalars and nested arrays like MEMBER OF does

MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a
scalar document as a 1-element array (boxing) and looks into nested
arrays (flattening). The array index only indexed the top-level
elements of a top-level array, and returned an ignorable error
otherwise. This caused INSERT IGNORE to store a row that MEMBER OF
matches but the index does not.

In this patch we index every scalar of the document at any array
depth, a scalar document as one entry, and skip objects. SQL NULL is
not an error any more either: it has no entries.

This closes finding #5.
Elena Stepanova
MDEV-42633 rpl.rpl_row_loaddata_concurrent fails with Wrong offset or I/O error when run after another test

The test saves only the position from SHOW MASTER STATUS and then
sources show_binlog_events.inc without $binlog_file. The resulting
SHOW BINLOG EVENTS FROM <pos> therefore reads the first binlog file.
If an earlier test in the same server run rotated the binlog (for
example, rpl.rpl_parallel_wrong_exec_master_pos runs FLUSH LOGS), the
saved position belongs to a later file. In the first file it does not
start an event, so the test fails with:

  ERROR 1220 (HY000): Error when executing command SHOW BINLOG EVENTS:
  Wrong offset or I/O error

Added RESET MASTER at the start of the test, as
rpl_stm_loaddata_concurrent.test already does.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Hemant Dangi
MDEV-42492: galera_sst_mariabackup_plugin_dir test fragility fixes

Issue:
- the test pins the exact number of times mdev42091_poc appears in
  mariabackup.prepare.log (FOUND 7); that count is incidental to
  mariabackup's own logging and isn't stable across platforms (FreeBSD
  produced 8), failing the result-file diff even though the test's
  actual assertion still held.
- node_2 is forced through a real restart/SST during cleanup, which can
  make Galera reassign auto_increment_offset on the membership change,
  leaking into mtr's end-of-test server-state check.

Solution:
- normalize the count with --replace_regex before the search, since only
  presence/absence matters.
- save/restore auto_increment_offset around the restart, per the existing
  convention used by other galera tests that restart a node.
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
Elena Stepanova
MDEV-42628 rpl.rpl_do_grant incorrectly passes on Linux and fails on Windows

The test opens connection create_rout_db_slave with host "localhost",
the slave port and no socket. mysqltest then uses the default socket,
which is the master's. On Unix a connection to "localhost" goes
through the socket and ignores the port, so this "slave" connection
actually went to the master. On Windows "localhost" means TCP, so the
connection really reached the slave.

Since MDEV-35617, DROP USER emits
ER_ACTIVE_CONNECTIONS_FOR_USER_TO_DROP (4227) when the dropped user
still has an active session. On Windows create_rout_db_slave was still
connected to the slave when DROP USER 'create_rout_db'@'localhost' ran
there, so the note appeared and the result did not match. On Unix the
slave had no such session, so the note never appeared, and the "slave"
part of the test had been running against the master.

Fix:
- pass $MASTER_MYSOCK / $SLAVE_MYSOCK explicitly, so each connection
  reaches the intended server on all platforms;
- disconnect create_rout_db_slave right after its last use, before
  DROP USER on the slave, and wait until the session is gone from
  information_schema.processlist, because the server finishes a
  disconnect only after the client has moved on.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Susil Behera
Elena Stepanova
MDEV-42594 rpl.rpl_binlog_directory fails on Windows with wrong result (slashes in the path)

Reviewed-by: Susil Behera
Mohamed
MDEV-40351 MSAN: use-of-uninitialized-value in escape_string_hide_passwords

server_audit cuts the logged query to server_audit_query_log_limit, but
escape_string_hide_passwords() skipped the password up to the closing
quote or the end of the string, ignoring the cut. When the cut fell
inside a password, the unsigned len wrapped around and the function
read past the end of the query into uninitialized memory, and wrote it
to the audit log.

Stop all the scans at str + len. The password is still masked.
Elena Stepanova
Merge 10.11 into 11.4
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
Yuchen Pei
MDEV-25848 Index scalars and nested arrays like MEMBER OF does

MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a
scalar document as a 1-element array (boxing) and looks into nested
arrays (flattening). The array index only indexed the top-level
elements of a top-level array, and returned an ignorable error
otherwise. This caused INSERT IGNORE to store a row that MEMBER OF
matches but the index does not.

In this patch we index every scalar of the document at any array
depth, a scalar document as one entry, and skip objects. SQL NULL is
not an error any more either: it has no entries.

This closes finding #5.
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
MDEV-41085 Enable MTR tests on Windows: rpl suite

Reviewed-by: Vladislav Vaintroub
Elena Stepanova
Merge 11.4 into 11.8
Yuchen Pei
MDEV-25848 Index scalars and nested arrays like MEMBER OF does

MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a
scalar document as a 1-element array (boxing) and looks into nested
arrays (flattening). The array index only indexed the top-level
elements of a top-level array, and returned an ignorable error
otherwise. This caused INSERT IGNORE to store a row that MEMBER OF
matches but the index does not.

In this patch we index every scalar of the document at any array
depth, a scalar document as one entry, and skip objects. SQL NULL is
not an error any more either: it has no entries.

This closes finding #5.
Yuchen Pei
MDEV-42208 Do not consider direct update for UPDATE ... RETURNING ...

Just like direct delete is not considered for DELETE ... RETURNING ...

This is because metadata sending is skipped in the direct update route.
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
Georgi (Joro) Kodinov
MDEV-42349: my_json_writer-t.cc fails to compile on MacOSX/clang under maintainer_mode

Converted all the stack JsonObject instances into pointers and dynamically allocated/deallocated these.
Elena Stepanova
MDEV-42590 rpl.rpl_start_alter_restart_master leaves replication setup behind

Reviewed-by: Susil Behera
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
Reviewed-by: Susil Behera
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
Teemu Ollakka
MDEV-42510 Galera: mariabackup and SST copy corrupt Aria tables

On a Galera node, a local write to a TRANSACTIONAL=1 Aria table, or a
TOI such as GRANT, could commit during BACKUP STAGE BLOCK_COMMIT.
mariabackup or the SST joiner then got a corrupt Aria table. In the
same code, FTWRL and BACKUP STAGE could deadlock with a replicated
write, a mariabackup SST donor let DDL run through the backup locks,
and a TOI could fail at UNLOCK TABLES or BACKUP STAGE END.

Causes:
- ha_commit_trans() did not take MDL_BACKUP_COMMIT for wsrep threads.
  A commit that the provider does not order, such as a local Aria
  write or a TOI, was not held by the provider pause either.
- 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. A provider-ordered commit does not: it would keep
  the lock while it waits in the provider order, and deadlock with
  FTWRL.
- 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.
- New sql/wsrep_backup.cc: wsrep_backup_stage_pause(),
  wsrep_ftwrl_pause() and wsrep_backup_resume() replace the pause and
  resume code in backup.cc and lock.cc. The pause sets
  THD::wsrep_backup_paused, lets the BF threads that wait for the
  backup lock get it (MDL_ticket::reschedule_waiters()), then pauses.
- THD::wsrep_desynced_backup_stage is now THD::wsrep_backup_paused, an
  Atomic_relaxed<bool>. Other threads read it in
  wsrep_handle_mdl_conflict(), under the MDL_lock::m_rwlock that the
  holder takes after it sets the flag.
- UNLOCK TABLES and BACKUP STAGE END resume the provider, clear the
  flag, then release the backup lock. A BF request that conflicts with
  the holder after the flag is cleared waits for the release. At
  BACKUP STAGE END, wsrep_abort_granted() also sends KILL_QUERY_HARD
  to the holder session. In tests, BACKUP STAGE END still returns OK
  and the session continues.
- UNLOCK TABLES always resumes after a pause, with
  resume_and_resync(). It resyncs only after a desync, and it catches
  a resume failure. Before, it chose by the node state, and it did not
  resume when the node was not a donor and the session had
  wsrep_on=OFF.
- New sql/wsrep_backup.h: documentation of the backup locks, the
  writes that they hold, the provider pause and desync, when a holder
  pauses, BF threads and backup locks, and the order of lock, pause,
  resume and release. mdl.h, mdl.cc, handler.cc and wsrep_mysqld.cc
  refer to it.
- New debug sync points wsrep_unlock_global_read_lock_before_resume
  and wsrep_backup_stage_before_resume_and_resync. The resume sync
  points fire also when the holder did not pause.

Tests:
- galera_backup_block_commit_aria: local Aria DML, local GRANT and
  applied GRANT at BLOCK_COMMIT.
- galera_sst_mariabackup_block_commit_aria: local Aria DML and local
  GRANT on a mariabackup SST donor held at BLOCK_COMMIT.
- galera_backup_lock_matrix: each kind of write at each backup stage
  and at FTWRL.
- galera_backup_lock_window: each kind of write held at a sync point
  while node 1 takes the backup locks.
- galera_3nodes.galera_sst_mariabackup_backup_lock_matrix: each kind
  of write on a mariabackup SST donor held at each backup stage.
- galera_ftwrl_bf_deadlock, galera_backup_block_commit_bf_deadlock:
  with BF_ABORT_MARIABACKUP, FTWRL and BLOCK_COMMIT do not deadlock
  with a write that waits for their backup lock.
- galera_sst_mariabackup_donor_ddl: on a mariabackup SST donor, local
  ALTER TABLE and GRANT do not commit during BLOCK_DDL and
  BLOCK_COMMIT.
- galera_backup_unlock_resume: a TOI that waits for the backup lock
  at UNLOCK TABLES or BACKUP STAGE END does not fail.
- galera_ftwrl_pending_bf: an applier does not wait behind a pending
  FTWRL.
- galera_ftwrl_ordered_commit: an applier waits for FTWRL1, and a
  local commit waits in the provider order for the applier. FTWRL
  gets FTWRL2 and pauses.
- galera_ftwrl_concurrent: the second BACKUP STAGE START waits until
  BACKUP STAGE END releases the backup lock.

The first five tests run with the combinations bf
(wsrep_mode=BF_ABORT_MARIABACKUP) and default. A write that commits
while a lock must block it prints a line that starts with "BUG:"
(galera_backup_lock_bug.inc). galera_backup_lock_deadlock.inc kills
node 1 to end a deadlock, and galera_restart_default.inc restarts the
nodes with the options of the test.

On 10.11 (debug build), 16 of the 17 test runs fail.
galera_ftwrl_pending_bf fails there only with
wsrep_mode=BF_ABORT_MARIABACKUP.

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.
- galera_backup_lock_deadlock.inc kills node 1 also when there is no
  deadlock.

Assisted-by: Claude:claude-opus-5-5
Vihaan Jain
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-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