Console View
|
Categories: connectors experimental galera main |
|
| connectors | experimental | galera | main | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alexey Yurchenko
alexey.yurchenko@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-79 reenable galera_vote_joined_apply MTR test Fix galera_vote_joined_begin.inc to allow running under RAFT Fix result file to suppress RAFT warnings |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Teemu Ollakka
teemu.ollakka@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-322 Reduce log noise when a peer server is down A failed non-blocking connect makes the socket writable. The connect was reported as successful, the TLS handshake then failed and the connection was closed. Each reconnect attempt to a down peer logged a connect, a disconnect and often a handshake warning. Check SO_ERROR after the socket becomes writable and report a failed connect as an error. Status observers are notified only of connects which succeed, and of disconnects only after a notified connect or accept. Update craft to 17acd033b85d867538f77adf56776eec2346849c |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rucha Deodhar
rucha.deodhar@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fix failing test | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jan Lindström
jan.lindstrom@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42386 : Galera test failure on galera_bad_wsrep_new_cluster after rebase Test file used incorrect path to kill_galera.inc |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CI: macOS - use Homebrew zlib Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aleksey Midenkov
midenok@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-41849 Killed query reports ER_NOT_FORM_FILE for a table with virtual column expressions Since MDEV-37938 the lexer stops on kill: it sends the kill message and returns END_OF_INPUT. parse_sql() fails only if the grammar rejects the text read so far. When a query is killed while a table is opened, the parse of a vcol expression or partitioning clause from the .frm fails, and open_table_from_share() reports ER_NOT_FORM_FILE after the kill error, as if the .frm were corrupted. The grammar also adds ER_EMPTY_QUERY or ER_PARSE_ERROR. A killed parallel slave worker shows these errors in Last_SQL_Error. Table discovery replaces the kill error with ER_SQL_DISCOVER_ERROR. The event scheduler logs an error during compilation of the event. A kill while trigger bodies are parsed marks the triggers as broken, and DML on the table fails until FLUSH TABLES. If the kill comes after a part that is valid on its own (a in a + 1), the parse succeeds and the cut-short text is used. This applies to any text parsed by parse_sql(). The fix makes parse_sql() fail when the lexer stopped on kill and reports only the kill error: the grammar adds no errors, open_table_from_share() does not report ER_NOT_FORM_FILE, discovery keeps the kill error, the event scheduler logs only the kill error, and triggers are not marked as broken. Lex_input_stream gets ignore_kill, stopped_on_kill and fail_if_stopped_on_kill(), used in this order: 1. The caller sets ignore_kill before the parse. 2. The lexer checks ignore_kill. If it is not set and the thread is killed with an error, the lexer raises the kill error, stops and sets stopped_on_kill. 3. After the parse, fail_if_stopped_on_kill() reads stopped_on_kill and fails the parse. ignore_kill is set when triggers are loaded for their names only (DROP TABLE, RENAME TABLE, I_S.TRIGGERS): they need every trigger name, e.g. for the .TRN files, and a parse stopped by the kill loses the name. A CTE referenced twice is parsed again by THD::sql_parser() inside the outer parse. That parser takes ignore_kill from the outer one and passes stopped_on_kill back to it, so the outer parse also fails on the kill. ABORT_QUERY and KILL_BAD_DATA have no kill error, so the lexer does not stop on them and reads the whole text, as before MDEV-37938. Table_triggers_list::check_n_load() deletes the triggers loaded so far on every error. A kill on the second or a later trigger now fails the load, and the sp_head of the earlier triggers would leak. This also fixes the same leak on out-of-memory errors. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Andrei Elkin
andrei.elkin@pp.inet.fi |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-3145 CDR must not engage unless event's row image is complete A CDR trigger only makes sense when the applier holds the master's whole row. The slave applier did not check that, so the conflict handler could run on a record whose values the slave supplied itself. That applied to binlog_row_image of MINIMAL, NOBLOB if a BLOB field is defined and FULL_NODUP with Update_rows event. Fixed by requiring a complete image before a conflict is routed to a resolver. Rows_log_event::is_cdr_conflict() gains COMPLETE_ROWS_F, and that is all Write_rows needs, the event having the one image. Delete_rows and Update_rows compute do_compare_records in do_exec_row() and pass it to find_row(). It holds when do_invoke_trigger() is true, the table has a PRIMARY KEY and COMPLETE_ROWS_F is set. As COMPLETE_ROWS_F is computed from m_cols, the before image, Update_rows must also test m_cols_ai, the after image. find_row() clears the flag when unpacking left any slave field without a value. The flag also decides whether find_row() fills ORG, so ORG is filled only where a resolver could use it. Tested with a new added rpl.rpl_cdr_row_image that proves the three short images' correct handling and, in its part 6, the NOBLOB table that has no blob, where the resolver must still run. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Mohammad Tafzeel Shams
tafzeel.shams@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42647 Non-core dictionary tables not loaded with innodb_force_recovery=6 Fix for MDEV-32042 moved the loading of the InnoDB data dictionary tables from dict_boot() to srv_start(), after recv_sys.apply(true). This code was placed inside a block that is skipped when innodb_force_recovery=6, so dict_sys.sys_virtual, sys_foreign and sys_foreign_cols would remain NULL. Opening a table with virtual columns would crash, and FOREIGN KEY constraints would be ignored. Changes : srv_start(): Invoke srv_load_tables() also when the redo log apply is skipped, like dict_boot() did before MDEV-32042. dict_load_virtual_col(): Return DB_CORRUPTION if SYS_VIRTUAL is not available. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rucha Deodhar
rucha.deodhar@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| MENT-2614: apply MDEV-38375 to server_audit2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Teemu Ollakka
teemu.ollakka@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-324 Send ConstBufferSequence with sendmsg() in TcpStream Update craft to 0bb782f8f02c390fd2089d85f9308d56e7367da7 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CI: macOS - Debug build, disable wsrep (submodule not checked out) Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hemant Dangi
hemant.dangi@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Oleksandr Byelkin
sanja@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-2789: Fix race in plugins.ment_2469 on disconnect DISCONNECT event of con_evil could be logged after DROP USER. Wait for the session to end. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alexey Yurchenko
alexey.yurchenko@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Remove a stray file from the repo. galera_var_cluster_address,grp.rdiff is of no use and was added by mistake. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jan Lindström
jan.lindstrom@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42439 : Galera test failure on galera_suspend_slave Add wait_conditions to stabilize test. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alexey Yurchenko
alexey.yurchenko@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-185 re-enable galera_nbo_master_* MTR tests The tests fail because RAFT provider didn't report 'Inconsistent' state, reporting 'Disconnected' instead. Add reporting 'Inconsistent' state through Wsrep_provider_raft::m_inconsistent boolean flag which is set by the provider through the added handle_inconsistency() callback (plugin interface version bumped to 0x0203) The only source of truth for the flag is the provider. It updates the flag on startup and whenever the noce becomes inconsistent. The mandatory requirement for the flag to be set to false is the presentce of the grastate.dat file and a valid cluster ID in it. The node is flagged inconsistent from the start and that is changed only after a valid grastate file is found. From the functional perspective both a fresh node that does not have any data and a node that lost in error voting are equivalently "inconsistent", that is both need an SST. Additional fix for galera_nbo_master_minority MTR tests: follow the general policy and return `error_provider_failed` instead of `error_connection_failed` from enter_toi() when write set kind is RRP_KIND_NBO_END since the operation cannot be completed. This prevents the client from indefinite retrying. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rex Johnston
rex.johnston@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-41179 MAX_KEY_PARTS ranges in select causing SEGV When a select containing 32 ranges is made on a table containing a compound key with 32 parts, the range optimizer can run off the end of a stack variable, invalidly overwriting subsequent stack variables. In the struct st_sel_arg_range_seq, we have an array RANGE_SEQ_ENTRY stack[MAX_REF_PARTS]; MAX_REF_PARTS is 32. check_quick_select / sel_arg_range_seq_init initialises stack[0] as NOT a key part / sel_arg_range_seq_next iterates through the key parts, adding key part n to stack[n+1] key part #32 gets referenced by step_down_to(), setting seq->i off the end of the array. Fix: RANGE_SEQ_ENTRY stack[MAX_REF_PARTS+1]; The above change exposed an issue with key length calculation on MS Windows. Calling make_prev_keypart_map(32) caused the resultant bitmap to be calculated as (1UL << 32) - 1. Using the MSVC compiler this resulted in an empty key length calculation during handler::index_read_map, causing an assertion in ha_innobase::index_read(). As we only need 32 bits to represent our key map, we change the type thus -typedef ulong key_part_map; +typedef uint32 key_part_map; We correct make_keypart_map() and make_prev_keypart_map() to call our overflow safe my_set_bits(). We also correct bka_range_seq_next() and bkah_range_seq_next() to use make_prev_keypart_map(). We also add some DBUG_ASSERTS in key_part_map processing elsewhere, exposing some issues in our BNLH implementation. We cap the number of keyuse parts here, altering the explain output of 2 of our tests. Numerous places needed bit shift operations altered to use make*keymap_part and various format strings needed to be corrected. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Rucha Deodhar
rucha.deodhar@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-3160: Enterprise Audit filter logs SET and COMMIT statements despite query_event [“DDL”,”DCL”] in ES 10.6.27 Analysis: SET, COMMIT, and SHOW commands were showing up in audit logs even when filters like query_ddl or query_dml were enabled. This happened because sql_command_to_cmdtype() was returning EVENT_OPT_ALL (0xFF) in the default case. This set all bits for unhandled commands, making the filter think these utility queries were DDL or DML. Fix: Changed the default return value in sql_command_to_cmdtype() from EVENT_OPT_ALL to 0 so that the utility commands don't get any category flags, so they end up in the filtered logs. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Oleksandr Byelkin
sanja@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fixup! new zlib | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Oleksandr Byelkin
sanja@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-2469: Fix remaining disconnect races in plugins.ment_2469 DISCONNECT events of con1, the failed connect and the exec'ed clients could be logged late or lost. Wait for the sessions to end and filter out the wait queries. Co-Authored-By: Claude Opus 5.5 <[email protected]> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Teemu Ollakka
teemu.ollakka@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Build raft_lib and raft_tls_lib as position independent code Both static libraries are linked into the raft.so shared module, but they were compiled without -fPIC. Set POSITION_INDEPENDENT_CODE property on both targets. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Georg Richter
georg@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Fix timeout errors by not preconsuming all bytes recv(4096) in tls dummy server | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Teemu Ollakka
teemu.ollakka@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Do not link the raft plugin with the TLS library The server which loads the plugin already links the TLS library and provides its symbls. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CI: add macOS build with Homebrew libraries (MDEV-42338) Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CI: macOS - non-fatal warnings, list all of them Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Oleksandr Byelkin
sanja@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| new zlib | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jan Lindström
jan.lindstrom@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-86 CRAFT inconsistency voting: galera_vote_sr MTR test crashes The applier did not handle apply errors. After an apply error the wsrep transaction was no longer active, which caused an assertion. Wsrep_provider_raft::run_applier() now records the first apply error and keeps draining the event queue until the final view event closes it. The commit order error vote has already handled the failure and, on a lost vote, disconnected the node from the cluster. The function returns error_provider_failed if an apply error occurred. wait_for_committed_slow() now checks m_last_committed_error also in the lock-free fast path. update_last_committed() advances m_last_committed_low also for a failed seqno, so a waiter on that seqno returned success without seeing the error. m_last_committed_error is now atomic to allow this check. Enable galera_vote_sr for the Raft plugin and add the necessary suite-level and test suppressions. Co-authored-by: Teemu Ollakka <[email protected]> |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CI: macOS - check out all submodules Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alexey Yurchenko
alexey.yurchenko@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Merge branch '10.11' into MDEV-41907 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jan Lindström
jan.lindstrom@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42395 : Galera test failure on galera_multi_level_fk_ddl_update after rebase Add wait_condition for wsrep_applier_thread_count and debug_sync_point. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aaravkhanal
183281401+Aaravkhanal@users.noreply.github.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42280 main.x509_oneline_separators skip message is confusing Name the SSL library family required by the skipped combination and the family detected on the server. Assisted-by: OpenAI Codex |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Georg Richter
georg@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONC-877: Build fails with OpenSSL 4.1: X509_check_host() and X509_check_ip_asc() are deprecated Replace deprecated post-handshake X509_check_host() and X509_check_ip_asc() calls with SSL_set1_host() / X509_VERIFY_PARAM_set1_host() and X509_VERIFY_PARAM_set1_ip_asc() so hostname and IP verification happen natively during the TLS handshake. Update TLS unit tests (unittest/libmariadb/tls.c and tls_server.py): - Add IP and DNS hostname verification tests (test_hostname_check_ip, test_hostname_check_dns) against the dummy TLS server. - Rewrite test_cert_wildcard to verify wildcard certificates during the TLS handshake rather than via post-handshake re-verification. - Update wait_for_tls_server() to use getaddrinfo() so DNS hostnames resolve properly when polling the dummy server. - Avoid appending default loopback SANs in tls_server.py when explicit SAN entries are requested. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Vladislav Vaintroub
vvaintroub@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42338 macOS: treat the Homebrew include directory as system Homebrew keeps the headers of all installed libraries in one directory, and libmariadb (which does not inherit include directories from the server) adds it as a plain -I. That shadows the SYSTEM OpenSSL path, and -Werror fails on warnings in OpenSSL 4.1 headers. Pass the directory as -isystem in the compiler flags, which are inherited by libmariadb. Assisted-by: Claude:claude-sonnet-5-5 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Oleksandr Byelkin
sanja@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| fixup! MENT-2/MENT-188/MENT-279 Binary information (looks like no) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hemant Dangi
hemant.dangi@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MGL-300: Report the running mariadb-raft-server's own version and revision Issue: Raft_source_revision is a plugin build-time value, not the actual running mariadb-raft-server binary's version/revision, which can diverge in release builds where the two are packaged separately. Solution: Parse the server's own startup banner (already forwarded to the error log) for its live version and build revision, and expose them as Raft_server_version and Raft_server_revision in place of Raft_source_revision. Warn on truncation or an unparseable banner, and reset both to "unknown" when the server process stops. Tested with galera.raft_server_version (raft provider). |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Khaled Riyad
khaled57.dev@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Georgi (Joro) Kodinov
joro@mariadb.org |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Aleksey Midenkov
midenok@gmail.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-2828 error codes Add the WARN_VERS_SLOW_ROW_END note used by the 11.4 ES row_end format probe. It takes ES extra error number 6002. Unlike the rest of MENT-2828, which is 11.4 ES only, this commit must be merged to further ES versions. ES extra numbers are allocated sequentially, so if later versions did not have this entry, their next ES-only error would take 6002 as well, and the same number would mean different things in 11.4 ES and later ES releases. Keeping the entry reserves the number everywhere. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Andrei Elkin
andrei.elkin@pp.inet.fi |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MENT-3159 CDR trigger must not run if master and slave table definitions differ A CDR trigger only engages when the master and slave table definitions coincide, including the width and, if binlog_row_metadata = FULL, the column names too. E.g a master and a slave whose tables differ in one column name: the master's t3 is (pk, a, c), the slave's is (pk, a, d). Column counts are equal, binlog_row_metadata is FULL so the slave maps two columns by name, but can't do them all, so its OLD and the master's ORG are incomparable. Actually all three Write, Update and Delete cases are vulnerable. The technical reason is the lack of the has_value_set() bitmap test in the Write one, and no propagation of the result of this check out of find_row() in the two other type cases. Fixed by returning the refined flag to the callers, find_row() taking it by reference, with ORG filled on the refined value as well; and by asking the same question for Write_rows in Rows_log_event::is_cdr_conflict(), beside the COMPLETE_ROWS_F one. Testing. rpl_cdr_unmapped_column runs the master's t3 (pk, a, c) against the slave's (pk, a, d). Parts 1 to 3 are the conflicts of the three event types on it, parts 4 to 6 the other shape of the difference, a wider slave, where COMPLETE_ROWS_F keeps CDR out already. Without the fix part 2 resolves the missing row into (2, 322, 8) and part 3 the duplicate into (3, 103, 8), where the 8 is the slave's own column default. Note. The has_value_set test holds for the first row of an event only. The bitmap is cleared once per event though not per row. However, a BEFORE or AFTER trigger assigning that column marks it, so from the second row the test passes and that should be noted in documentation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Jan Lindström
jan.lindstrom@mariadb.com |
|
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MDEV-42387 : Galera test failure on galera_bf_abort_ps_bind after rebase Added wait condition for table contents and updated result file. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||