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
Jan Lindström
MDEV-42367 : Galera test failure on galera_as_slave_wsrep_error

Fixes both galera_as_slave_wsrep_error as well as mdev-41075
test cases not to use RESET MASTER directly, instead
use include/reset_master.inc.
Sergei Petrunia
Remove st_select_lex::table_join_options, get_table_join_options()

The member is only zeroed in init_select(), and the accessor is declared
but has no definition. The last reader and writers in the grammar were
removed by bc04ded2353 ("Follow-up post JSON_TABLE merge,
table_join_options is not used"). d624464b50b had earlier removed the
member and accessor, but they came back with the JSON_TABLE merge.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Jan Lindström
MDEV-42497 Galera test failure on galera_sr_nonPK_and_PA

The test galera_sr.galera_sr_nonPK_and_PA passes, but the MTR check of
the test case fails on node 2 with ER_LOCK_WAIT_TIMEOUT. The check
query waits for node 2 to apply all write sets, and an applier on node
2 is stuck on a Galera debug sync point.

The test sets two sync points on node 2, commit_monitor_slave_enter_sync
and then apply_monitor_slave_enter_sync. "dbug=" pops one level of the
Galera debug stack, it does not clear all sync points. The test signals
commit_monitor_slave_enter_sync, pops one level, signals
apply_monitor_slave_enter_sync, and pops the last level. After the
first pop commit_monitor_slave_enter_sync is active again. When the
released SR fragment reaches the commit monitor before the last pop,
it waits there and no signal comes.

Pop both sync points before the signals. Wait on node 2 until the SR
transaction is applied, and show the rows of t1 and t2 on both nodes,
so that a stuck applier fails the test itself.

Assisted-by: Claude:claude-4.6-sonnet
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
Sergei Petrunia
Remove JOIN::select_list_used_tables, eval_select_list_used_tables()

JOIN::select_list_used_tables is computed by
JOIN::eval_select_list_used_tables(), but never read. Its last reads
(in the code that optimizes DISTINCT on a subset of the tables, and in
JOIN_TAB::save_explain_data()) were removed by:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 2016

    This is the consolidated patch for mdev-8646: "Re-factor the code
    for post-join operations".

Remove the member and the function that computes it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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.

Assisted-by: Claude:claude-sonnet-5-5
Reviewed-by: Kristian Nielsen
Marko Mäkelä
Merge 11.8 into 12.3
Sergei Petrunia
Remove JOIN_TAB::all_fields

JOIN_TAB::all_fields is only assigned (in JOIN::make_aggr_tables_info())
and is never read. It was added, together with JOIN_TAB::fields, by:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 2016

    This is the consolidated patch for mdev-8646: "Re-factor the code
    for post-join operations".

That commit never read it, and no later commit has either, so there was
no last use to remove. JOIN_TAB::fields is read (by end_send() and
end_send_group()) and is kept. Update its comment, which also described
all_fields.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
Sergei Petrunia
Remove st_select_lex::udf_list

The member is declared but never used. Its last uses (the parser's
udf call stack and the udf_list.empty() initializers) were removed
by the fix for Bug#24736 (88ba7676c1a, also applied as 1f695dbf7d0).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sergei Petrunia
Remove JOIN_TAB::related_tables

The member was added by:
commit 1d82e5daf71
Author: Monty
Date:  Mon Jun 13 2022

    Move join->emb_smj_nest setting to choose_plan()

and has never been used, neither read nor assigned.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Jan Lindström
MDEV-42444 mariabackup SST fails with "Donor does not know my secret!"

When ssl-mode is DISABLED or REQUIRED, a mariabackup SST fails on the
joiner with "Donor does not know my secret!" and the joiner node does
not start. The joiner sends its secret to the donor as
"<CN>:<secret>@<address>". The CN is set only when ssl-mode is
VERIFY_CA or VERIFY_IDENTITY. Since MDEV-41158 the joiner sends a
secret in every ssl-mode, so in the other modes the CN part is empty.

write_auth_info() gives the remote credentials to the donor script
only when the remote user name is not empty. With an empty CN the
secret is not given to the donor, the donor does not send it back,
and the joiner stops the SST.

Give the remote credentials to the donor script when the user name
or the password is not empty.

Assisted-by: Claude:claude-4.6-sonnet
Yuchen Pei
MDEV-25848 Allow optimizer key hints to have an effect when the key is MVI

IGNORE INDEX, USE/FORCE INDEX of other keys, IGNORED, and
NO_RANGE_OPTIMIZATION now work
Vladislav Vaintroub
MDEV-37996 CMake: MariaDB:: targets for bundled-or-system libraries

Stop overwriting the standard find_package() result variables (ZLIB_FOUND,
ZLIB_LIBRARIES, ZLIB_INCLUDE_DIR(S), ...), this breaks vcpkg.

Provide namespaced INTERFACE targets that point at either the bundled or
the system library and carry their include directories (and, for SSL, the
compile definitions)

  MariaDB::zlib, MariaDB::OpenSSL, MariaDB::pcre2-8, MariaDB::pcre2-posix,
  MariaDB::fmt, MariaDB::readline

Link these consistently instead of the scattered ${*_LIBRARIES} and
${*_INCLUDE_DIR(S)} variables sprinkled across the tree.

Bundled pcre2-posix depends on pcre2-8 so the static link order is correct
for consumers that link only posix.

wolfssl carries its own usage requirements (HAVE_WOLFSSL,
WOLFSSL_USER_SETTINGS); MariaDB::OpenSSL keeps only HAVE_OPENSSL.

Update libmariadb to 3.3 (47a31a98): handles MariaDB::zlib as a submodule.
Sergei Petrunia
Remove JOIN::filesort_found_rows

Last use was removed by:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 12:35:59 2016 -0800

    This is the consolidated patch for mdev-8646:
    "Re-factor the code for post-join operations".
Vladislav Vaintroub
MDEV-42338 Treat system library headers as SYSTEM includes

Mark include directories for system OpenSSL and system pcre2 as SYSTEM
so that warnings from their headers are not promoted to errors under
-Werror. Bundled library headers are left as regular includes.

System zlib already gets SYSTEM treatment because ZLIB::ZLIB is an
IMPORTED target (CMake marks imported target includes as SYSTEM by
default).

Assisted-by: Claude:claude-opus-4-6
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-41085 Enable MTR tests on Windows: rpl suite
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
Sergei Petrunia
Remove JOIN::union_part

The member is assigned in JOIN::prepare() but never read. Its last
reads (in the EXPLAIN code) were removed by:
commit 46a22a5be75
Author: [email protected]
Date:  Thu Sep 26 2002

    new EXPLAIN
    fixed bug in mysql-test/create-test-result
    fixed bug in union-subselect engine

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Marko Mäkelä
Merge 12.3 into 13.2
Yuchen Pei
MDEV-25848 Allow optimizer key hints to have an effect when the key is MVI

IGNORE INDEX, USE/FORCE INDEX of other keys, IGNORED, and
NO_RANGE_OPTIMIZATION now work
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
Marko Mäkelä
Merge 11.4 into 11.8
Marko Mäkelä
Merge 13.2 into main
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.

Assisted-by: Claude:claude-opus-5-5
Reviewed-by: Alice Sherepa
Pekka Lampio
MDEV-38976 Add test for node that is ahead of the primary component

Extend the MTR tests for Galera write loss after crash and partition:

- MDEV-38976 now checks that the saved state of the aborted nodes is
  marked as diverged (grastate.dat keeps its UUID), and that the nodes
  rejoin after the operator intervenes.
- MDEV-38976-divergence checks that the nodes with a diverged saved
  state refuse to join when node 3 has advanced past their saved
  positions, instead of rejoining by IST with diverged data.

Both tests need Galera 26.4.29.

Assisted-by Claude AI
Kristian Nielsen
MDEV-41658 fix Galera node crash when a parallel slave worker is bf_killed

A parallel-replication worker would assert in ha_rollback_trans() because
wsrep_after_statement() and ha_commit_trans()'s wsrep error path could
roll back its transaction before retry_event_group() unmarks it as
committing.

Skip mark_start_commit() when using Galera. Galera certification can cause
rollback of parallel replication transactions during commit when there is a
conflicting transaction outside of replication. This can cause to start the
next GCO too early, while the previous GCO still needs to rollback and
retry.

Do not fail replication with an error when wsrep_after_statement() fails due
to a retryable error like brute-force kill.

Signed-off-by: Kristian Nielsen <[email protected]>
Yuchen Pei
MDEV-25848 Allow optimizer key hints to have an effect when the key is MVI

IGNORE INDEX, USE/FORCE INDEX of other keys, IGNORED, and
NO_RANGE_OPTIMIZATION now work
Yuchen Pei
MDEV-25848 Allow optimizer key hints to have an effect when the key is MVI

IGNORE INDEX, USE/FORCE INDEX of other keys, IGNORED, and
NO_RANGE_OPTIMIZATION now work
Sergei Petrunia
Remove JOIN::need_distinct

The member was assigned in JOIN::init(), JOIN::optimize_inner() and
JOIN::optimize_stage2(), but never read. Its last reads, the arguments
of prepare_sum_aggregators() calls, were removed by:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 2016

    This is the consolidated patch for mdev-8646: "Re-factor the code
    for post-join operations".

Since then the callers compute the value themselves from
is_using_agg_loose_index_scan().

JOIN::prepare_sum_aggregators() has a parameter of the same name, which
is unrelated and is kept.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Alessandro Vetere
MDEV-42454 Assertion buf_fix_count(state) <= 2 with read-ahead

buf_page_init_for_read() buffer-fixed a page that already exists in
buf_pool.page_hash. An asynchronous read and buf_read_recover() released
that buffer-fix without accessing the page. buf_read_ahead_random() and
buf_read_ahead_linear() invoke buf_read_page_low() for every page of the
read-ahead area, so each resident page got a short buffer-fix. If such a
page had been freed and was being allocated again, buf_page_create_low()
could count this buffer-fix together with another one (for example, of
btr_blob_free()), and the debug assertion buf_fix_count(state) <= 2
failed. Release builds were not affected.

buf_page_init_for_read(): Add the parameter fix. Only buffer-fix an
existing page if fix holds. Otherwise, return nullptr | 1. Add the
DEBUG_SYNC point buf_page_init_for_read_freed for a freed page.

buf_read_page_low(): Only request a buffer-fix for a synchronous read.

buf_read_recover(): Do not request a buffer-fix.

btr_blob_free(): Add the DEBUG_SYNC point btr_blob_free_after_commit.

The test innodb.read_ahead_freed_page stops a ROLLBACK in
btr_blob_free() after it freed a BLOB page, and a random read-ahead when
it finds that page. CREATE TABLE then allocates the page. Without the
fix, buf_page_create_low() finds 3 buffer-fixes on it.

Assisted-by: Claude:claude-opus-5-5
Vladislav Vaintroub
MDEV-37996 CMake: MariaDB:: targets for bundled-or-system libraries

Stop overwriting the standard find_package() result variables (ZLIB_FOUND,
ZLIB_LIBRARIES, ZLIB_INCLUDE_DIR(S), ...), this breaks vcpkg.

Provide namespaced INTERFACE targets that point at either the bundled or
the system library and carry their include directories (and, for SSL, the
compile definitions)

  MariaDB::zlib, MariaDB::OpenSSL, MariaDB::pcre2-8, MariaDB::pcre2-posix,
  MariaDB::fmt, MariaDB::readline

Link these consistently instead of the scattered ${*_LIBRARIES} and
${*_INCLUDE_DIR(S)} variables sprinkled across the tree.

Bundled pcre2-posix depends on pcre2-8 so the static link order is correct
for consumers that link only posix.

wolfssl carries its own usage requirements (HAVE_WOLFSSL,
WOLFSSL_USER_SETTINGS); MariaDB::OpenSSL keeps only HAVE_OPENSSL.

Update libmariadb to 3.3 (47a31a98): handles MariaDB::zlib as a submodule.
Vladislav Vaintroub
MDEV-42338 Treat system library headers as SYSTEM includes

Mark include directories for system OpenSSL and system pcre2 as SYSTEM
so that warnings from their headers are not promoted to errors under
-Werror. Bundled library headers are left as regular includes.

System zlib already gets SYSTEM treatment because ZLIB::ZLIB is an
IMPORTED target (CMake marks imported target includes as SYSTEM by
default).

Assisted-by: Claude:claude-opus-4-6
Sergei Petrunia
Remove JOIN::original_join_tab, original_table_count

These were added by cf50e13fbd1 (MDEV-6080: Allowing storage engine to
shortcut group by queries) to remember the join_tab array and table_count
before the group_by_handler replaced them.

The last assignment of non-NULL values to them was removed by:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 2016

    This is the consolidated patch for mdev-8646: "Re-factor the code
    for post-join operations".

Since then original_join_tab was only set to 0, so the block in
JOIN::cleanup() that restored join_tab and table_count from them never
ran. Remove the block and both members.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Kristian Nielsen
Fix some incorrect uses of off_t

The off_t type is POSIX, not standard C/C++, and generally should not be
used in non-platform specific code. (The main problem is that is is a
32-bit signed integer on 64-bit Windows, potentially causing integer
overflow).

Reviewed-by: Vladislav Vaintroub <[email protected]>
Signed-off-by: Kristian Nielsen <[email protected]>
Aleksey Midenkov
MDEV-20266 rocksdb.mariadb_port_fixes fails in BB about twice a day

The EXPLAIN of MDEV-14563 test case sporadically shows ALL instead of
range:

  -1 SIMPLE t2 range a a 32 NULL # Using where
  +1 SIMPLE t2 ALL a NULL NULL NULL # Using where

The two rows of t1 and t2 are still in the memtable when EXPLAIN runs.
ha_rocksdb::info() takes stats.records and records_in_range() takes
the range estimate from GetApproximateMemTableStats(), which counts
skiplist nodes of random height. The memtable of the default column
family also holds the data of the tests run before on the same server.
So both estimates vary between runs, and when the range estimate is
not less than stats.records, the optimizer prefers the table scan.

The fix flushes the memtable and runs ANALYZE TABLE before each
EXPLAIN, like index_merge_rocksdb.test does. Then the estimates come
from the SST file statistics. Both statements are hidden from the
result, so the result file is unchanged.
Sergei Petrunia
Remove JOIN::no_field_update, sum_funcs2, sum_funcs_end2

JOIN::no_field_update was added in the initial import (2000) and has
never been used.

JOIN::sum_funcs2 and JOIN::sum_funcs_end2 were last used before:
commit 2cfc450bf78c2d951729d1a0e8f731c0d987b1d5
Author: Igor Babaev <[email protected]>
Date:  Tue Feb 9 2016

    This is the consolidated patch for mdev-8646: "Re-factor the code
    for post-join operations".

Since then sum_funcs2 was only zeroed in JOIN::init() and
sum_funcs_end2 was not referenced at all.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>