summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-24177 && MDEV-24178bb-10.4-anel-MDEV-24177-compiled_charset_failureAnel Husakovic2020-11-231-0/+1
| | | | | | | - MDEV-24177: main.sp2 test fails: Result length mismatch - MDEV-24178: main.upgrade_MDEV-19650 test fails: Result length mismatch Reviewed by: serg@mariadb.com
* MDEV-23659: Update Galera disabled.def fileJan Lindström2020-11-191-4/+0
| | | | | | | Removed * lp1376747-4 * MDEV-16509 * galera_defaults
* MDEV-21494 : Galera test sporadic failure on galera.galera_defaultsJan Lindström2020-11-196-16/+25
| | | | | Make sure that we operate with correct Galera library version and do not print wsrep_provider_options field.
* Make test galera_parallel_apply_3nodes deterministicDaniele Sciascia2020-11-192-26/+59
| | | | | | | | | | | | | | Test galera_parallel_apply_3nodes started to failed occasionally. The test assumes that one round of autocommit retry is sufficient in order to avoid a deadlock error when two conflicting UPDATE statements run concurrently. This assumption no longer holds after galera library has changed last_committed() to return the seqno of the last transaction that left apply monitor, rather than commit monitor. So it is possible that after a BF abort, a command is re-executed before it's BF abortee has left the apply monitor. Thus causing another retry or a deadlock error. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
* MDEV-21523 : galera.MDEV-16509 MTR failed: timeout after 900 seconds: Can't ↵Jan Lindström2020-11-191-0/+1
| | | | | | connect to local MySQL server Add requirement for debug-build.
* MDEV-24165 : Galera test failure on galera_var_ignore_apply_errorsJan Lindström2020-11-191-0/+26
| | | | Add wait conditions.
* Work around MDEV-24232: Skip perfschema.nesting if WITH_WSREP=OFFMarko Mäkelä2020-11-171-0/+2
|
* MDEV-24115 Fix -Wconversion in Timeval::Timeval() on Mac OS Xbb-10.4-MDEV-24115Dmitry Shulga2020-11-171-1/+7
| | | | | | | The data member tv_usec of the struct timeval is declared as suseconds_t on MacOS. Size of suseconds_t is 4 bytes. On the other hand, size of ulong is 8 bytes on 64-bit MacOS, so attempt to assign a value of wider type (usec) to a value (tv_usec) of narrower type leads to error.
* Merge 10.3 into 10.4Marko Mäkelä2020-11-171-0/+6
|\
| * Do not run maria.repair with --embedded as memory usage is differentMonty2020-11-161-0/+6
| |
* | Restore autoincrement offset in MTR test MDEV-24063Daniele Sciascia2020-11-162-0/+8
| |
* | Merge branch '10.3' into 10.4Oleksandr Byelkin2020-11-141-1/+1
|\ \ | |/
| * Merge branch '10.2' into 10.3Oleksandr Byelkin2020-11-141-1/+1
| |\
| | * Fix to make it compiling on new ubuntu.Oleksandr Byelkin2020-11-141-1/+1
| | |
* | | MDEV-24188: Merge 10.3 into 10.4Marko Mäkelä2020-11-136-47/+89
|\ \ \ | |/ /
| * | MDEV-24188: Merge 10.2 into 10.3Marko Mäkelä2020-11-136-57/+96
| |\ \ | | |/
| | * MDEV-24188 Hang in buf_page_create() after reusing a previously freed pageMarko Mäkelä2020-11-136-58/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix of MDEV-23456 (commit b1009ae5c16697d5eef443cc6a60a74301148c73) introduced a livelock between page flushing and a thread that is executing buf_page_create(). buf_page_create(): If the current mini-transaction is holding an exclusive latch on the page, do not attempt to acquire another one, and do not care about any I/O fix. mtr_t::have_x_latch(): Replaces mtr_t::get_fix_count(). dyn_buf_t::for_each_block(const Functor&) const: A new variant. rw_lock_own(): Add a const qualifier. Reviewed by: Thirunarayanan Balathandayuthapani
* | | MDEV-23619: Merge 10.3 into 10.4Marko Mäkelä2020-11-135-26/+312
|\ \ \ | |/ /
| * | MDEV-23619: Merge 10.2 into 10.3Marko Mäkelä2020-11-135-26/+312
| |\ \ | | |/
| | * MDEV-23619 MariaDB crash on WITH RECURSIVE UNION ALL (CTE) queryIgor Babaev2020-11-135-25/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a premature cleanup of the unit that specified a recursive CTE used in the second operand of union the server fell into an infinite loop in the reported test case. In other cases this premature cleanup could cause other problems. The bug is the result of a not quite correct fix for MDEV-17024. The unit that specifies a recursive CTE has to be cleaned only after the cleanup of the last external reference to this CTE. It means that cleanups of the unit triggered not by the cleanup of a external reference to the CTE must be blocked. Usage of local table chains in selects to get external references to recursive CTEs was not correct either because of possible merges of some selects. Also fixed a minor bug in st_select_lex::set_explain_type() that caused typing 'RECURSIVE UNION' instead of 'UNION' in EXPLAIN output for external references to a recursive CTE.
* | | Merge branch '10.3' into 10.4Sujatha2020-11-124-6/+7
|\ \ \ | |/ /
| * | Merge branch '10.2' into 10.3Sujatha2020-11-124-10/+27
| |\ \ | | |/
| | * MDEV-4633: multi_source.simple test fails sporadicallySujatha2020-11-124-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Analysis: ======== Writes to 'rli->log_space_total' needs to be synchronized, otherwise both SQL_THREAD and IO_THREAD can try to modify the variable simultaneously resulting in incorrect rli->log_space_total. In the current test scenario SQL_THREAD is trying to decrement 'rli->log_space_total' in 'purge_first_log' and IO_THREAD is trying to increment the 'rli->log_space_total' in 'queue_event' simultaneously. Hence test occasionally fails with result mismatch. Fix: === Convert 'rli->log_space_total' variable to atomic type.
* | | Merge 10.3 into 10.4Marko Mäkelä2020-11-1222-254/+234
|\ \ \ | |/ /
| * | Merge 10.2 into 10.3Marko Mäkelä2020-11-1215-289/+149
| |\ \ | | |/
| | * Merge mariadb-10.2.36 into 10.2Marko Mäkelä2020-11-116-15/+143
| | |\
| | * | bump the VERSIONDaniel Bartholomew2020-11-111-1/+1
| | | |
| | * | Cleanup: Remove dict_space_is_empty(), dict_space_get_id()Marko Mäkelä2020-11-112-161/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As noted in commit 0b66d3f70d365bbb936aae4ca67892c17d68d241, MariaDB does not support CREATE TABLESPACE for InnoDB. Hence, some code that was added in commit fec844aca88e1c6b9c36bb0b811e92d9d023ffb9 and originally in mysql/mysql-server@c71dd213bd434c0579e454ab8880e6d3756b0fb0 is unused in MariaDB and should be removed.
| | * | MDEV-24156 trx_undo_left() fails to prevent overflowMarko Mäkelä2020-11-111-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trx_undo_left(): Return 0 in case of an overflow, instead of returning a negative number interpreted as a large positive number. Also, add debug assertions to check that the pointer is within the page area. This should allow us to catch bugs like MDEV-24096 easier in the future.
| | * | MDEV-24182 ibuf_merge_or_delete_for_page() contains dead codeMarko Mäkelä2020-11-114-90/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function ibuf_merge_or_delete_for_page() was always being invoked with update_ibuf_bitmap=true ever since commit cd623508dff53c210154392da6c0f65b7b6bcf4c fixed up something after MDEV-9566. Furthermore, the parameter page_size is never being passed as a null pointer, and therefore it should better be a reference to a constant object.
| | * | MDEV-23769: MTR can abort before it prints the test result summaryAnel Husakovic2020-11-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Patch is solving generating report on warning To repeat the error run single worker: ``` ./mtr --mysqld=--lock-wait-timeout=-xx 1st 1st --force --parallel 1 ``` or `N` workers with `N+1` tests with failures and `force` ``` ./mtr --mysqld=--lock-wait-timeout=-xx 1st 1st grant5 --force --parallel 2 ``` - Patch is doing cosmetic fix of `current_test` log file which holds the old log value of test `CURRENT TEST:..` in `mark_log()` in case of `unknown option` and as such the logic which is using it's content doesn't output valid log content and doesn't generate valid `$test->{'comment'}` message.asdf - Closing the socket/handler after the removing the handler from IO for consistency Reviewed by: serg@mariadb.com
| | * | MDEV-24171 index_online_log is instrumented as rw-lock, not mutexMarko Mäkelä2020-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | The row_log_t::mutex is a mutex, yet it was instrumented as rw-lock in PERFORMANCE_SCHEMA.
| | * | MDEV-7620: Remove the data structuresMarko Mäkelä2020-11-092-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The instrumentation that was added in commit 90635c6fb5e51aa878b81b1285c758afc361c7dc (MDEV-7620) was effectively reverted in MariaDB Server 10.2.2, in commit 2e814d4702d71a04388386a9f591d14a35980bfe (which stopped reporting the statistics) and commit fec844aca88e1c6b9c36bb0b811e92d9d023ffb9 (which stopped updating the statistics). Let us remove the orphan data members to reduce the memory footprint.
| | * | MDEV-23103 rpl.rpl_gtid_delete_domain failed in buildbotAlice Sherepa2020-11-042-10/+4
| | | |
| | * | bump the VERSIONDaniel Bartholomew2020-11-031-1/+1
| | | |
| | * | Fix MTR test galera.galera_triggerDaniele Sciascia2020-11-032-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed the test so that it does not rely on specific auto increment ids. With Galera's default wsrep_auto_increment_control setting it is not guaranteed that auto increments always start from 1. The test was occasionally failing due to result content mismatch. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
| * | | Merge mariadb-10.3.27 into 10.3Marko Mäkelä2020-11-116-15/+143
| |\ \ \
| * | | | bump the VERSIONDaniel Bartholomew2020-11-111-1/+1
| | | | |
| * | | | MDEV-24130: Cannot launch mariadbd via mysqld_safeAnel Husakovic2020-11-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Patch 95bb3cb886cb64be3ee5ace660b used `my_which` function in `10.2` - Based on patch `355ee6877bec` from 10.3+ `command -v` is used instead of `my_which` so we are changing in this patch also - `ldconfig` is usually found in `/sbin` so make sure it is added in `$PATH` variable
| * | | | bump the VERSIONDaniel Bartholomew2020-11-031-1/+1
| | | | |
| * | | | Merge remote-tracking branch 10.2 into 10.3Jan Lindström2020-11-032-126/+0
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | Clean up wsrep.variablesJan Lindström2020-11-032-66/+0
| | | | |
| * | | | MDEV-23824 SIGSEGV in end_io_cache on REPAIR LOCAL TABLE for Aria tableMonty2020-11-026-26/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugs fixed: - prepare_for_repair() didn't close all open files if table opened failed because of out-of-memory - If dd_recreate_table() failed, the data file was not properly restored from it's temporary name - Aria repair initializing code didn't properly clear all used structs before calling error, which caused crashed in memory-free calls. - maria_delete_table() didn't register if table open failed. This could calls my_error() to be called without returning 1 to the caller, which cased failures in my_ok() Note when merging to 10.5: - Remove the #if MYSQL_VERSION from sql_admin.cc
* | | | | MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLEsjaakola2020-11-115-25/+207
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A follow-up fix, for original fix for MDEV-21577, which did not handle well temporary tables. OPTIMIZE and REPAIR TABLE statements can take a list of tables as argument, and some of the tables may be temporary. Proper handling of temporary tables is to skip them and continue working on the real tables. The bad version, skipped all tables, if a single temporary table was in the argument list. And this resulted so that FK parent tables were not scnanned for the remaining real tables. Some mtr tests, using OPTIMIZE or REPAIR for temporary tables caused regressions bacause of this, e.g. galera.galera_optimize_analyze_multi The fix in this PR opens temporary and real tables first, and in the table handling loop skips temporary tables, FK parent scanning is done only for real tables. The test has new scenario for OPTIMIZE and REPAIR issued for two tables of which one is temporary table. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
* | | | | MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLEsjaakola2020-11-117-80/+512
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR fixes same issue as MDEV-21577 for TRUNCATE TABLE. MDEV-21577 fixed TOI replication for OPTIMIZE, REPAIR and ALTER TABLE operating on FK child table. It was later found out that also TRUNCATE has similar problem and needs a fix. The actual fix is to do FK parent table lookup before TRUNCATE TOI isolation and append found FK parent table names in certification key list for the write set. PR contains also new test scenario in galera_ddl_fk_conflict test where FK child has two FK parent tables and there are two DML transactions operating on both parent tables. For development convenience, new TO isolation macro was added: WSREP_TO_ISOLATION_BEGIN_IF and WSREP_TO_ISOLATION_BEGIN_ALTER macro was changed to skip the goto statement. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
* | | | | Merge mariadb-10.4.17 into 10.4Marko Mäkelä2020-11-117-39/+165
|\ \ \ \ \
| * \ \ \ \ Merge branch '10.3' into 10.4mariadb-10.4.17Sergei Golubchik2020-11-107-18/+146
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | MDEV-24117: Memory management problem (in range optimizer)mariadb-10.3.27Sergei Petrunia2020-11-103-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust the testcase for MariaDB 10.3+ : prevent IN-to-subquery conversion optimization from working.
| | * | | | Merge branch '10.2' into 10.3Sergei Golubchik2020-11-097-16/+144
| | |\ \ \ \ | | | | |_|/ | | | |/| |
| | | * | | MDEV-23811: With large number of indexes optimizer chooses an inefficient planmariadb-10.2.36Igor Babaev2020-11-095-4/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug could manifest itself for a query with WHERE condition containing top level OR formula such that each conjunct contained a single-range condition supported by the same index. One of these range conditions must be fully covered by another range condition that is used later in the OR formula. Additionally at least one of these condition should be ANDed with a sargable range condition supported by a different index. There were several attempts to fix related problems for OR conditions after the backport of range optimizer code from MySQL (commit 0e19f3e36f7842583feb6bead2c2600cd620bced). Unfortunately the first of these fixes contained typo remained unnoticed until recently. This typo bug led to rejection of valid range accesses. This patch fixed this typo bug. The fix revealed another two bugs: one in a constructor for SEL_ARG, the other in the function tree_or(). Both are fixed in this patch.