summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-17230: encryption_key_id from alter is ignored by encryption threadsbb-10.1-MDEV-17230Jan Lindström2018-10-104-26/+81
| | | | | | | | | | | | | | | | | Background: Used encryption key_id is stored to encryption metadata i.e. crypt_data that is stored on page 0 of the tablespace of the table. crypt_data is created only if implicit encryption/not encryption is requested i.e. ENCRYPTED=[YES|NO] table option is used fil_create_new_single_table_tablespace on fil0fil.cc. Later if encryption is enabled all tables that use default encryption mode (i.e. no encryption table option is set) are encrypted with default encryption key_id that is 1. See fil_crypt_start_encrypting_space on fil0crypt.cc. ha_innobase::check_table_options() If default encryption is used and encryption is disabled, you may not use nondefault encryption_key_id as it is not stored anywhere.
* MDEV-17403: Test failure on galera.galera_enumJan Lindström2018-10-102-22/+33
| | | | Add wait on second node.
* MDEV-17413 - Don't crash in my_malloc_size_cb_func()Vladislav Vaintroub2018-10-091-7/+9
| | | | | | if thread specific memory is requested and current_thd is NULL. Leave DBUG_ASSERT() in place, to check in DBUG version.
* MDEV-17346 parallel slave start and stop races to workers disappearedAndrei Elkin2018-10-081-3/+22
| | | | | | | | | | | | | | | The bug appears as a slave SQL thread hanging in rpl_parallel_thread_pool::get_thread() while there are no slave worker threads to awake it. The reason of the hang is that at the parallel slave worker pool activation the being stared SQL thread could read the worker pool size concurrently with pool deactivation. At reading the SQL thread did not employ necessary protection from a race. Fixed with making the SQL thread at the pool activation first to grab the same lock as potential deactivator also does prior to access the pool size.
* MDEV-17382 Hash join algorithm should not be used to join materializedIgor Babaev2018-10-074-2/+81
| | | | | | | | | | | | | | | | derived table / view by equality Now rows of a materialized derived table are always put into a temporary table before join operation. If BNLH is used to join this table with the result of a partial join then both operands of the join are actually put into main memory. In most cases this is not efficient. We could avoid this by sending the rows of the derived table directly to the join operation. However this kind of data flow is not supported yet. Fixed by not allowing usage of hash join algorithm to join a materialized derived table if it's joined by an equality predicate of the form f=e where f is a field of the derived table.
* Merge pull request #876 from tempesta-tech/tt-10.1-MDEV-17313-counter-raceMarko Mäkelä2018-10-052-38/+54
|\ | | | | MDEV-17313 Data race in ib_counter_t
| * MDEV-17313 Data race in ib_counter_tEugene Kosov2018-10-022-38/+54
| | | | | | | | ib_counter_t: make all reads/writes to m_counter relaxed atomical
* | MDEV-17200 - pthread_detach called for already detached threadsSergey Vojtovich2018-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pthread_detach_this_thread() was intended to be defined to something meaningful only on some ancient unixes, which don't have pthread_attr_setdetachstate() defined. Otherwise, on normal unixes, threads are created detached in the first place. This was broken in 0f01bf267680244ec488adaf65a42838756ed48e so that we started calling pthread_detach() for already detached threads. Intention was to detach aria checkpoint thread. However in 87007dc2f71634cc460271eb277ad851ec69c04b aria service threads were made joinable with appropriate handling, which makes breaking revision unneccessary. Revert remnants of 0f01bf267680244ec488adaf65a42838756ed48e, so that pthread_detach_this_thread() is meaningful only on some ancient unixes again.
* | Test by reverting MDEV-16656: DROP DATABASE crashes the Galera ClusterJan Lindström2018-10-043-45/+8
| |
* | Enable for staging tree.Jan Lindström2018-10-041-1/+1
| |
* | Fix typo.Jan Lindström2018-10-042-2/+3
| |
* | Fix test failure on wsrep.variablesJan Lindström2018-10-041-1/+1
| | | | | | | | SLES11 can't build currently latest Galera library version.
* | MDEV-17357: Test failure on galera.galera_pc_ignore_sbJan Lindström2018-10-043-9/+19
| | | | | | | | Add wait until cluster has correct number of nodes.
* | Merge pull request #875 from tempesta-tech/sysprg/MDEV-16656Jan Lindström2018-10-014-6/+126
|\ \ | | | | | | MDEV-16656: DROP DATABASE crashes the Galera Cluster
| * | MDEV-16656: DROP DATABASE crashes the Galera ClusterJulius Goryavsky2018-10-014-6/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When converting table identifiers to a new format, some tables can be renamed twice, which subsequently leads to the appearance of "false" auxiliary tables belonging to another main (parent) table (which does not actually have auxiliary tables). This is because the table number is repeatedly added to the aux_tables_to_rename vector inside the function fts_check_and_drop_orphaned_tables. To correct this error, we must add a check for the occurrence of the table number in the aux_tables_to_rename vector before adding a new element. https://jira.mariadb.org/browse/MDEV-16656
* | | Fix rpl_parallel_optimistic_nobinlog failure on binlogSachin2018-10-011-0/+1
| |/ |/|
* | Merge branch '10.0' into 10.1Sergei Golubchik2018-09-2332-319/+542
|\ \
| * | tokudb: create and destroy TOKUDB_SHARE::_open_tables_mutex dynamicallySergei Golubchik2018-09-222-6/+8
| | | | | | | | | | | | to guarantee that it's destroyed when plugin deinit is called, not after
| * | sanitize tokudb locking macrosSergei Golubchik2018-09-221-8/+8
| | |
| * | Merge remote-tracking branch 'origin/5.5' into bb-10.0-barbb-10.0-barAlexander Barkov2018-09-212-2/+6
| |\ \
| | * | Fixing the comment not to mention the removed class Item_copy_int.Alexander Barkov2018-09-211-1/+1
| | | |
| | * | A cleanup for MDEV-17249 MAKETIME(-1e50,0,0) returns a wrong resultAlexander Barkov2018-09-211-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unary minus operation for the smallest possible signed long long value (LONLONG_MIN) is undefined in C++. Because of this, func_time.test failed on ppc64 buildbot machines. Fixing the code to avod using undefined operations. This is fix is similar to "MDEV-7973 bigint fail with gcc 5.0"
| * | | Merge 5.5 into 10.0Marko Mäkelä2018-09-211-1/+2
| |\ \ \ | | |/ /
| | * | Pull request #868: MDEV-17248 Improve ASAN memory pool instrumentationMarko Mäkelä2018-09-212-3/+4
| | |\ \
| | | * | MDEV-17248 Improve ASAN memory pool instrumentationEugene Kosov2018-09-212-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | alloc_root(): unpoison only requested amount of bytes instead of a possible bigger aligned-sized buffer.
| * | | | After-merge cleanup: adjust the test to work in 10.0Alexander Barkov2018-09-212-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the original test in 10.0 it was not really important if find_user_wild() or find_user_exact() is used in sp_grant_privileges(). sp-security.test passed with either of them. Fixing the test so it reliably fails with find_user_wild() and pass with find_user_exact().
| * | | | Merge remote-tracking branch 'origin/5.5' into 10.0Alexander Barkov2018-09-2123-305/+479
| |\ \ \ \ | | |/ / /
| | * | | MDEV-17250 Remove unused Item_copy_xxxAlexander Barkov2018-09-202-265/+0
| | | | |
| | * | | MDEV-17244 MAKETIME(900,0,0.111) returns a wrong resultAlexander Barkov2018-09-203-3/+145
| | | | |
| | * | | MDEV-17249 MAKETIME(-1e50,0,0) returns a wrong resultAlexander Barkov2018-09-2013-32/+219
| | |/ /
| | * | MDEV-16741 Assertion `m_extra_cache' failed in ha_partition::late_extra_cacheEugene Kosov2018-09-104-1/+21
| | | | | | | | | | | | | | | | multi_delete sets TABLE::no_cache=1 and should set it to 0 when DELETE is done.
| | * | Bug#27230925: HANDLE_FATAL_SIGNAL (SIG=11) IN SHOW_ROUTINE_GRANTSSergei Golubchik2018-09-042-0/+42
| | | | | | | | | | | | | | | | test case
| | * | Bug#27407480: AUTOMATIC_SP_PRIVILEGES REQUIRES NEED THE INSERT PRIVILEGES ↵Sergei Golubchik2018-09-043-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | FOR MYSQL.USER TABLE A test case and a followup fix
| * | | MDEV-14410 - Assertion `table->pos_in_locked_tables == __null ||Sergey Vojtovich2018-09-184-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | table->pos_in_locked_tables->table == table' failed in mark_used_tables_as_free_for_reuse Assertion failure can be triggered by some DDL executed under LOCK TABLES that holds lock for DDL target table multiple times (either explicitly or implcitly). When closing all table instances for given table (e.g. when preparing for table removal during CREATE OR REPLACE), only one instance was removed from m_locked_tables list. Later we attempt to re-insert one of the instances in mysql_create_table()/ add_back_last_deleted_lock(), which wasn't actually removed. This leads to m_locks_tables corruption, specifically loss of all following elements. Then UNLOCK TABLE won't reset some table instances properly (specifically pos_in_locked_tables), since they're not present in m_locked_tables. Eventually such table instance gets released to table cache and then re-used by subsequent statement, which triggers this assertion failure.
| * | | Update contributorsIan Gilfillan2018-09-103-3/+9
| | | |
* | | | MDEV-17276: Adjust Galera tests after Galera library 25.3.24Jan Lindström2018-09-233-0/+5
| | | |
* | | | Adjust disabled Galera tests.Jan Lindström2018-09-233-3/+4
| | | |
* | | | MDEV-15805: Test failure on galera.query_cacheJan Lindström2018-09-233-50/+117
| | | | | | | | | | | | | | | | | | | | Reset query cache after every test case and add wait after load infile.
* | | | MDEV-13873: galera.galera_suspend_slave failed in buildbot with wrong error codeJan Lindström2018-09-192-0/+5
| | | | | | | | | | | | | | | | Add wsrep_sync_wait as we want INSERT to fail.
* | | | MDEV-13871: galera.galera_unicode_identifiers failed in buildbot with ↵Jan Lindström2018-09-192-6/+12
| |_|/ |/| | | | | | | | | | | | | | 'Unknown database' Wait in second node until tables with databases are created.
* | | MDEV-17208: Test failure on galera.MW-286Jan Lindström2018-09-192-4/+5
| | | | | | | | | | | | Test changes only.
* | | Removed duplicate tests.Igor Babaev2018-09-193-151/+0
| | |
* | | Test galera.query_cache is still failing on bb.Jan Lindström2018-09-171-1/+1
| | |
* | | MDEV-17206: Test failure on galera.galera_ist_* in debug buildsbb-10.1-MDEV-13879Jan Lindström2018-09-174-0/+415
| | | | | | | | | | | | | | | Failure is due missing .rdiff files for debug build as tests have @have_debug combination.
* | | MDEV-13879: galera.galera_wan fails in buildbot with Stray state UUID msg or ↵Jan Lindström2018-09-173-6/+13
| | | | | | | | | | | | | | | | | | | | | with "Transport endpoint is not connected" or with a failure to start a node Add correct suppressions and wait conditions for expected database contents.
* | | Adjust Galera disabled tests based on test results.Jan Lindström2018-09-171-3/+0
| | |
* | | MDEV-14143: galera.galera_kill_smallchanges, galera.galera_kill_ddl fail in ↵Jan Lindström2018-09-145-1/+6
| | | | | | | | | | | | | | | | | | buildbot with "Last Applied Action message in non-primary configuration from member 0" Add supression.
* | | Test galera_sst_rsync_data_dir has different result on releaseJan Lindström2018-09-141-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and debug builds. Modified version for 10.1 from following commit: commit 8e68876477eaec7944baa0b63ef26e551693c4f8 Author: Oleksandr Byelkin <sanja@mariadb.com> Date: Thu Sep 13 15:06:44 2018 +0200 Fix of the test which has debug version
* | | MDEV-13876: galera.MW-328A failed in buildbot with wrong result or timeoutJan Lindström2018-09-144-3/+3
| | | | | | | | | | | | | | | Move MW-328[A,B,C] to big tests as there seem to be big variation on their execution times and sometimes that could lead timeout.
* | | MDEV-16912: Spider Order By column[datatime] limit 5 returns 3 rowsJacob Mathew2018-09-136-0/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem occurs in 10.2 and earlier releases of MariaDB Server because the Partition Engine was not pushing the engine conditions to the underlying storage engine of each partition. This caused Spider to return the first 5 rows in the table with the data provided by the customer. 2 of the 5 rows did not qualify the WHERE clause, so they were removed from the result set by the server. To fix the problem, I have back-ported support for engine condition pushdown in the Partition Engine from MariaDB Server 10.3. Author: Jacob Mathew. Reviewer: Kentoku Shiba. Cherry-Picked: Commit eb2ca3d on branch bb-10.2-MDEV-16912