summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-19794 Spider crash with XAbb-10.4-MDEV-19794Kentoku SHIBA2020-08-136-4/+191
|
* Fix test galera_ist_progress in 10.4Jan Lindström2020-08-112-9/+21
|
* Merge 10.3 into 10.4Marko Mäkelä2020-08-112-8/+13
|\
| * Work around MDEV-23445 in the MDEV-14836 test caseMarko Mäkelä2020-08-113-5/+27
| |
* | After-merge fix of a resultMarko Mäkelä2020-08-111-0/+18
| | | | | | | | | | | | | | In the merge eae968f62d285de97ed607c87bc131cd863d5d03, it turns out that I had accidentally initiated an in-source build in the past, and $MYSQL_TZINFO_TO_SQL was pointing to a stale copy of the executable in the source directory, instead of the correct one in the build directory.
* | Merge 10.3 into 10.4Marko Mäkelä2020-08-1043-294/+702
|\ \ | |/
| * Merge 10.2 into 10.3Marko Mäkelä2020-08-1035-292/+665
| |\
| | * Merge 10.1 into 10.2Marko Mäkelä2020-08-1019-410/+412
| | |\
| | | * MDEV-16115 Hang after reducing innodb_encryption_threadsMarko Mäkelä2020-08-106-374/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test encryption.create_or_replace would occasionally fail, because some fil_space_t::n_pending_ops would never be decremented. fil_crypt_find_space_to_rotate(): If rotate_thread_t::should_shutdown() holds due to innodb_encryption_threads having been reduced, do release the reference. fil_space_remove_from_keyrotation(), fil_space_next(): Declare the functions static, simplify a little, and define in the same compilation unit with the only caller, fil_crypt_find_space_to_rotate(). fil_crypt_key_mutex: Remove (unused).
| | | * bump the VERSIONDaniel Bartholomew2020-08-101-1/+1
| | | |
| | | * Merge remote-tracking branch 'bb-10.1-release' into 10.1Oleksandr Byelkin2020-08-101-1/+1
| | | |\
| | | * | MDEV-23386: mtr: main.mysqld--help autosized table{-open,}-cach and ↵Daniel Black2020-08-105-31/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | max-connections Example of the failure: http://buildbot.askmonty.org/buildbot/builders/bld-p9-rhel7/builds/4417/steps/mtr/logs/stdio ``` main.mysqld--help 'unix' w17 [ fail ] Test ended at 2020-06-20 18:51:45 CURRENT_TEST: main.mysqld--help --- /opt/buildbot-slave/bld-p9-rhel7/build/mysql-test/main/mysqld--help.result 2020-06-20 16:06:49.903604179 +0300 +++ /opt/buildbot-slave/bld-p9-rhel7/build/mysql-test/main/mysqld--help.reject 2020-06-20 18:51:44.886766820 +0300 @@ -1797,10 +1797,10 @@ sync-relay-log-info 10000 sysdate-is-now FALSE system-versioning-alter-history ERROR -table-cache 421 +table-cache 2000 table-definition-cache 400 -table-open-cache 421 -table-open-cache-instances 1 +table-open-cache 2000 +table-open-cache-instances 8 tc-heuristic-recover OFF tcp-keepalive-interval 0 tcp-keepalive-probes 0 mysqltest: Result length mismatch ``` mtr: table_open_cache_basic autosized: Lets assume that >400 are available and that we can set the result back to the start value. All of these system variables are autosized and can generate MTR output differences. Closes #1527
| | | * | Better comment about TABLE::maybe_nullSergei Petrunia2020-08-061-3/+10
| | | | |
| | | * | MDEV-9513: Assertion `join->group_list || !join->is_in_subquery()' failed in ↵Varun Gupta2020-08-064-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | create_sort_index Removing the ORDER BY clause from the UNION when UNION is inside an IN/ALL/ANY/EXISTS subquery. The rewrites are done for subqueries but this rewrite is not done for the fake_select of the UNION.
| | | * | MDEV-23105 Cast number string with many leading zeros to decimal gives ↵Alexander Barkov2020-08-053-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unexpected result Skip leading zeros when converting a string to decimal_t.
| | * | | Merge mariadb-10.2.33Marko Mäkelä2020-08-1047-107/+126
| | |\ \ \
| | * | | | bump the VERSIONDaniel Bartholomew2020-08-101-1/+1
| | | | | |
| | * | | | Replaced infinite loop in procedure with limited loop to avoidbb-10.2-MDEV-22626Jan Lindström2020-08-072-17/+67
| | | | | | | | | | | | | | | | | | | | | | | | hang.
| | * | | | MDEV-22626: mysql_tzinfo_to_sql not replicates timezone to galeranodes if ↵Jan Lindström2020-08-073-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only 1 timezone will be loaded. Move alter to InnoDB earlier to more correct place to handle also if only a one timezone file is loaded.
| | * | | | MDEV-15180: server crashed with NTH_VALUE()Varun Gupta2020-08-063-1/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix_fields for the arguments of the NTH_VALUE function was updating the same reference, so for the second argument (or after the first argument) the items were not resolved to their corresponding field from the view as they were updating the reference to the first argument.
| | * | | | MDEV-17066: Bytes lost or Assertion `status_var.local_memory_used == 0 after ↵Varun Gupta2020-08-056-25/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DELETE with subquery with ROLLUP The issue here is when records are read from the temporary file (filesort result in this case) via a cache(rr_from_cache). The cache is initialized with init_rr_cache. For correlated subquery the cache allocation is happening at each execution of the subquery but the deallocation happens only once and that was when the query execution was done. So generally for subqueries we do two types of cleanup 1) Full cleanup: we should free all resources of the query(like temp tables). This is done generally when the query execution is complete or the subquery re-execution is not needed (case with uncorrelated subquery) 2) Partial cleanup: Minor cleanup that is required if the subquery needs recalculation. This is done for all the structures that need to be allocated for each execution (example SORT_INFO for filesort is allocated for each execution of the correlated subquery). The fix here would be free the cache used by rr_from_cache in the partial cleanup phase.
| | * | | | MDEV-23101 fixup: Remove redundant codeMarko Mäkelä2020-08-041-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lock_rec_has_to_wait_in_queue(): Remove an obviously redundant assertion that was added in commit a8ec45863b958757da61af3b2ce0a38b0a79d92c and also enclose a Galera-specific condition in #ifdef WITH_WSREP.
| | * | | | MDEV-23082: ER_TABLEACCESS_DENIED_ERROR error message is truncated,Rucha Deodhar2020-08-043-19/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and inaccurately Analysis: The list of all privileges is 118 characters wide. However, the format of error message was: "%-.32s command denied to user...". get_length() sets the maximum width to 32 characters. As a result, only first 32 characters of list of privilege are stored. Fix: Changing the format to "%-.100T..." so that get_length() sets width to 100. Hence, first 100 characters of the list of privilege are stored and the type specifier 'T' appends '...' so that truncation can be seen.
| | * | | | MDEV-14836: Assertion `m_status == DA_ERROR' failed inRucha Deodhar2020-08-043-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Diagnostics_area::sql_errno upon query from I_S with LIMIT ROWS EXAMINED open_normal_and_derived_table() fails because the query was already killed as rows examined by the query are more than the limit. However, this isn't a real error. Fix: Check if there is actually an error before calling thd->sql_errno() and later send a warning in handle_select() if no real error.
| | * | | | Test case MW-328A still fails, thus disable it until it is reallyJan Lindström2020-08-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | fixed.
| | * | | | MDEV-23101: SIGSEGV in lock_rec_unlock() when Galera is enabledJan Lindström2020-08-031-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lock_rec_has_to_wait wsrep_kill_victim lock_rec_create_low lock_rec_add_to_queue DeadlockChecker::select_victim() THD can't change from normal transaction to BF (brute force) transaction here, thus there is no need to syncronize access in wsrep_thd_is_BF function. lock_rec_has_to_wait_in_queue Add condition that lock is not NULL and add assertions if we are in strong state.
| * | | | | Merge mariadb-10.3.24Marko Mäkelä2020-08-10154-916/+1885
| |\ \ \ \ \
| * | | | | | bump the VERSIONDaniel Bartholomew2020-08-101-1/+1
| | | | | | |
| * | | | | | MDEV-22022 Various mangled SQL statements will crash 10.3 to 10.5 debug buildsAlexander Barkov2020-08-045-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lex_input_stream::scan_ident_delimited() could go beyond the end of the input when a starting backtick (`) delimiter did not have a corresponding ending backtick. Fix: catch the case when yyGet() returns 0, which means either eof-of-query or straight 0x00 byte inside backticks, and make the parser fail on syntax error, displaying the left backtick as the syntax error place. In case of filename in a script like this: SET CHARACTER_SET_CLIENT=17; -- 17 is 'filename' SELECT doc.`Children`.0 FROM t1; the ending backtick was not recognized as such because my_charlen() returns 0 for a straight backtick (backticks must normally be encoded as @0060 in filename). The same fix works for 'filename': the execution skips the backtick and reaches the end of the query, then yyGet() returns 0. This fix is OK for now. But eventually 'filename' should either be disallowed as a parser character set, or fixed to handle encoded punctuation properly.
| * | | | | | Fix named_pipe test so it can be used with --repeatVladislav Vaintroub2020-08-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the error log of the mysqld instance that was attempted to start in the test.
| * | | | | | MDEV-23348 vio_shutdown does not prevent later ReadFile on named pipeVladislav Vaintroub2020-08-033-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce st_vio::shutdown_flag to be checked prior to Read/WriteFile and during wait for async.io to finish.
* | | | | | | Merge mariadb-10.4.14Marko Mäkelä2020-08-10182-1040/+2841
|\ \ \ \ \ \ \
| * \ \ \ \ \ \ Merge branch '10.3' into 10.4mariadb-10.4.14Sergei Golubchik2020-08-0642-100/+95
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | |
| | * | | | | | Merge branch '10.2' into 10.3mariadb-10.3.24Sergei Golubchik2020-08-0645-104/+124
| | |\ \ \ \ \ \ | | | | |_|/ / / | | | |/| | | |
| | | * | | | | Merge branch '10.1' into 10.2mariadb-10.2.33Sergei Golubchik2020-08-0647-107/+126
| | | |\ \ \ \ \ | | | | |_|/ / / | | | |/| | | / | | | | | |_|/ | | | | |/| |
| | | | * | | link failure on fulltest (xenial)mariadb-10.1.46Sergei Golubchik2020-08-061-1/+1
| | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | depending on build config the error might be hidded, in particular liblz4.so and libjemalloc.so make it to disappear, but with -DWITH_INNODB_LZ4=NO -DWITH_JEMALLOC=NO it reappears.
| | | | * | Merge branch 'merge/merge-tokudb-5.6' into 10.1Sergei Golubchik2020-08-0542-100/+95
| | | | |\ \
| | | | | * | 5.6.49-89.0Sergei Golubchik2020-08-0447-148/+125
| | | | | | |
| | | | * | | MDEV-23089 rpl_parallel2 fails in 10.5Sachin2020-08-043-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem:- rpl_parallel2 was failing non-deterministically Analysis:- When FLUSH TABLES WITH READ LOCK is executed, it will allow all worker threads to complete their ongoing transactions and then it will pause them. At this state FTWRL will proceed to acquire global read lock. FTWRL first blocks threads from starting new commits, then upgrades the lock to block commit of existing transactions. Step1: FLUSH TABLES WITH READ LOCK - Blocks new commits Step2: * STOP SLAVE command enables 'force_abort=1' which unblocks workers, they continue to execute events. * T1: Waits in 'record_gtid' call to update 'gtid_slave_pos' table with its current GTID, but it is blocked becuase of Step1. * T2: Holds COMMIT lock and waits for T1 to commit. Step3: FLUSH TABLES WITH READ LOCK - Waiting to get BLOCK_COMMIT. This results in deadlock. When STOP SLAVE command allows paused workers to proceed, workers should skip the execution of all further events, similar to 'conservative' parallel mode. Solution:- We will assign 1 to skip_event_group when we are aborted in do_ftwrl_wait. rpl_parallel_entry->pause_sub_id is only reset when force_abort is off in rpl_pause_after_ftwrl.
| | * | | | | List of unstable tests for 10.3.24 releaseElena Stepanova2020-08-041-347/+315
| | | | | | |
| * | | | | | MDEV-23358 main.upgrade_MDEV-19650 fails with result differenceSergei Golubchik2020-08-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | no it doesn't
| * | | | | | List of unstable tests for 10.4.14 releaseElena Stepanova2020-08-041-414/+392
| | | | | | |
| * | | | | | MDEV-23345 Assertion not_redundant() == old.not_redundant()Marko Mäkelä2020-08-045-6/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit fd9ca2a742abe2e91b2b77e70915dec7bd3cd7e1 (MDEV-23295) we added a debug assertion, which caught a similar bug. prepare_inplace_alter_table_dict(): If we had promised that ALGORITHM=INPLACE or ALGORITHM=NOCOPY is supported, we must preserve the ROW_FORMAT.
| * | | | | | Merge branch '10.3' into 10.4Oleksandr Byelkin2020-08-03134-520/+2306
| |\ \ \ \ \ \ | | |/ / / / /
| | * | | | | Merge branch '10.2' into 10.3Oleksandr Byelkin2020-08-03109-466/+1447
| | |\ \ \ \ \ | | | |_|_|_|/ | | |/| | | |
| | | * | | | Merge branch '10.1' into 10.2Oleksandr Byelkin2020-08-032-3/+2
| | | |\ \ \ \ | | | | |/ / / | | | |/| / / | | | | |/ /
| | | | * | Fix the typo in fix for MDEV-21472Sergei Petrunia2020-08-031-1/+1
| | | | | |
| | | | * | compilation error on bintar-centos6-amd64-debugSergei Golubchik2020-08-031-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | /home/buildbot/buildbot/build/storage/xtradb/mtr/mtr0mtr.cc:97:37: error: invalid access to non-static data member ‘fil_space_t::latch’ of NULL object [-Werror=invalid-offsetof]
| | | * | | List of unstable tests for 10.2.33 releaseElena Stepanova2020-08-031-325/+268
| | | | | |
| | | * | | Merge branch '10.1' into 10.2Elena Stepanova2020-08-032-0/+5
| | | |\ \ \ | | | | |/ /