summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-13232: Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 && ↵bb-10.3-MDEV-13232Oleksandr Byelkin2018-04-1713-40/+828
| | | | | | | | pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->thread)' failed in _ma_state_info_write Length of numegic function results limited by matsimum really possible length. (Problem was that negation did not limited it and then was not possible to create so long field)
* Merge remote-tracking branch '10.2' into 10.3Vicențiu Ciorbaru2018-04-12145-425/+1963
|\
| * MDEV-12632: Source and destination overlap in memcpy, ↵Jan Lindström2018-04-121-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | encryption.innodb-discard-import-change fails in buildbot with valgrind Problem was that if tablespace was encrypted we try to copy also page 0 from read buffer to write buffer that are in that case the same memory area. fil_iterate When tablespace is encrypted or compressed its first page (i.e. page 0) is not encrypted or compressed and there is no need to copy buffer.
| * MDEV-12903: encryption.innodb_encryption_discard_import fails in buildbot ↵Jan Lindström2018-04-122-5/+24
| | | | | | | | | | | | | | with FOUND vs NOT FOUND Wait until rotation has ended and shutdown before grep to make sure that dirty pages are on datafiles.
| * Use same connection convention of specifying IPsVicențiu Ciorbaru2018-04-124-28/+28
| | | | | | | | If we use hostnames, it will fail during name resolution on UNIX systems
| * Fix perfschema.hostcache_ipv4_max_conVicentiu Ciorbaru2018-04-124-28/+28
| | | | | | | | | | | | | | | | | | | | | | Also fix perfschema.hostcache_ipv6_max_con. The test case makes use of a debug switch to execute some special code. The code does hostname replacement. Every hostname sent during connect phase becomes santa.claus.ipv4.example.com (or ipv6). This causes a connection from root@localhost to fail, as root is not registered as santa claus user. The failure is only apparent on Windows as Unix systems make use of sockets, which bypass the name resolution check entirely.
| * MDEV-15780 : mariabackup does not handle absolute names in for system ↵Vladislav Vaintroub2018-04-111-1/+2
| | | | | | | | | | | | | | tablespaces Fix 10.2-specific bug - copy-back is not prepared to handle system tablespaces with absolute path.
| * Fixed mdev-15765 BETWEEN not working in certain casesIgor Babaev2018-04-103-0/+38
| | | | | | | | | | | | The implementations of the convert_to_basic_const_item() virtual function for the Item_cache classes should call cache_value() when value_cached == NULL.
| * Merge branch '10.1' into 10.2Vicențiu Ciorbaru2018-04-10134-391/+1474
| |\
| | * Fix warnings in InnoDB & XtraDB post MDEV-14705Vicențiu Ciorbaru2018-04-102-6/+8
| | | | | | | | | | | | | | | There was a missing argument to service_manager_extend_timeout call and the signness of arguments did not match.
| | * MDEV-15823: Test failure on galera.galera_var_slave_threadsJan Lindström2018-04-103-1/+9
| | | | | | | | | | | | Wait drop table to be replicated before continuing.
| | * MDEV-14705: Extend timeout for waiting for transactionsMarko Mäkelä2018-04-102-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | If innodb_fast_shutdown<2, all transactions of active connections will be rolled back on shutdown. This can take a long time, and the systemd shutdown timeout should be extended during the wait. logs_empty_and_mark_files_at_shutdown(): Extend the timeout when waiting for other threads to complete.
| | * Revert "MDEV-14705: Do not rollback on InnoDB shutdown"Marko Mäkelä2018-04-106-24/+46
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 76ec37f5225eda9f8a23760091bfb60287927715. This behaviour change will be done separately in: MDEV-15832 With innodb_fast_shutdown=3, skip the rollback of connected transactions
| | * MDEV-15713 mariabackup: throw warning, if --stream is used without --backupVladislav Vaintroub2018-04-091-0/+4
| | |
| | * MDEV-15825 Mariabackup help mentions Percona and PXC but not MariaDBVladislav Vaintroub2018-04-092-2/+2
| | |
| | * Update test cases post MDEV-10286Vicențiu Ciorbaru2018-04-096-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Table_open_cache gets adjusted on server startup to prevent an out of file descriptor error. However this means that when we reset its value to default, it does not get re-adjusted. This leads to the mtr consistency check to fail with different server status at the end of the test case as opposed to when it started. To fix the problem, do not make use of the DEFAULT keyword to set the variable back, instead save the value before any modifications and restore it from there.
| | * MDEV-13549: Galera test failuresJan Lindström2018-04-091-1/+1
| | | | | | | | | | | | Disable occasionally failing test case galera.galera_var_slave_threads.
| | * MDEV-15810: Test failure on galera.lp1376747 and galera.lp1376747-2Jan Lindström2018-04-095-2/+20
| | | | | | | | | | | | Wait until create table is replicated before continuing.
| | * MDEV-15807: Test failure on galera.galera_lock_tableJan Lindström2018-04-093-1/+11
| | | | | | | | | | | | | | | Wait until create tables are replicated to the slave before trying lock table.
| | * MDEV-13549: Galera test failuresJan Lindström2018-04-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Disable more occasionally failing test cases. galera.galera_lock_table galera.galera_gra_log galera.MW-44 galera.lp1376747 galera.lp1376747-2 galera.galera_pc_ignore_sb
| | * MDEV-15806: Test failure on galera.galera_parallel_simpleJan Lindström2018-04-083-1/+11
| | | | | | | | | | | | | | | Make sure DDL's (create tables) are replicated before continuing to lock table.
| | * MDEV-13549: Galera test failuresJan Lindström2018-04-081-3/+5
| | | | | | | | | | | | | | | | | | | | | Disable occasionally failing test cases pxc-421 query_cache galera_parallel_simple
| | * MDEV-15752 Possible race between DDL and accessing ↵Marko Mäkelä2018-04-072-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I_S.INNODB_TABLESPACES_ENCRYPTION fil_crypt_read_crypt_data(): Do not attempt to read the tablespace if the file is unaccessible due to a pending DDL operation, such as renaming the file or DROP TABLE or TRUNCATE TABLE. This is only reducing the probability of the race condition, not completely preventing it.
| | * Merge branch '10.0' into 10.1Vicențiu Ciorbaru2018-04-0733-47/+599
| | |\
| | | * MDEV-15291 - OQGraph fails to build on FreeBSDSergey Vojtovich2018-04-063-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Boost includes sys/param.h on FreeBSD, which in turn defines setbit() macro. This macro is conflicting with open_query::judy_bitset::setbit(). Reordered includes such that oqgraph_judy.h never sees this macro. Also removed duplicate includes of graphcore-config.h, which is included by graphcore-graph.h/oqgraph_shim.h/oqgraph_thunk.h.
| | | * Update contributorsIan Gilfillan2018-04-053-6/+3
| | | |
| | | * Merge branch '5.5' into 10.0Vicențiu Ciorbaru2018-04-0311-3/+441
| | | |\
| | | | * don't disable SSL when connecting via libmysqldSergei Golubchik2018-04-031-2/+2
| | | | |
| | | | * compiler warningSergei Golubchik2018-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | warning: format '%p' expects argument of type 'void *', but argument 4 has type 'long int'
| | | | * MDEV-15630 uuid() function evaluates at wrong time in queryAlexander Barkov2018-04-033-0/+24
| | | | |
| | | | * MDEV-11274: Executing EXPLAIN of complex query over join limit causes server ↵Varun Gupta2018-03-273-0/+394
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to crash For this case we have a view that is mergeable but we are not able to merge it in the parent select because that would exceed the maximum tables allowed in the join list, so we materialise this view TABLE_LIST::dervied is NULL for such views, it is only set for views which have ALGORITHM=TEMPTABLE Fixed by making sure TABLE_LIST::derived is set for views that could not be merged
| | | | * MDEV-15620 Crash when using "SET @@NEW.a=expr" inside a triggerAlexander Barkov2018-03-273-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | A simple patch fixing the problem in 5.5. Note, a full patch was previously fixed to 10.3.
| | | * | increase upper value of max_prepared_stmt_count to UINT32_MAXDaniel Black2018-04-038-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The upper 1M limit for max_prepared_stmt_count was set over 10 years ago. It doesn't suite current hardware and a sysbench oltp_read_write test with 512 threads will hit this limit.
| | | * | MDEV-9744: session optimizer_use_condition_selectivity=5 causing SQL Error ↵Varun Gupta2018-04-024-6/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1918): Encountered illegal value '' when converting to DECIMAL The issue was that EITS data was allocated but then not read for some reason (one being to avoid a deadlock), then the optimizer was using these bzero'ed buffers as EITS statistics. This should not be allowed, we should use statistcs for a table only when we have successfully loaded/read the stats from the statistical tables.
| | | * | MDEV-15619 using CONVERT() inside AES_ENCRYPT() in an UPDATE corrupts dataAlexander Barkov2018-03-264-6/+90
| | | | |
| | * | | Disable galera_var_auto_inc_control_on test.Jan Lindström2018-04-072-0/+3
| | | | |
| | * | | Merge pull request #694 from ↵Jan Lindström2018-04-072-0/+5
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | codership/MDEV-13549-fixes-for-galera_wsrep_desync_wsrep_on MDEV-13549 Fix test galera.galera_wsrep_desync_wsrep_on
| | | * | | MDEV-13549 Fix test galera.galera_wsrep_desync_wsrep_onDaniele Sciascia2018-04-062-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The test tends to fail if many parallel instances of it are executed: ``` mysqltest: At line 23: query 'ALTER TABLE t1 ADD PRIMARY KEY (f1)' failed: 1317: Query execution was interrupted ``` The `ALTER` fails because it is BF aborted due to an earlier `INSERT SELECT` that is being applied: ``` INSERT INTO t1 (f1) SELECT ... --connection node_2 SET GLOBAL wsrep_desync = TRUE; SET SESSION wsrep_on = FALSE; ALTER TABLE t1 ADD PRIMARY KEY (f1); SET SESSION wsrep_on = TRUE; SET GLOBAL wsrep_desync = FALSE; ``` And because the `ALTER` is executed with `wsrep_on = OFF`, it does not run in total order isolation. To avoid the problem it must be ensured that the `ALTER` only after the large `INSERT SELECT` is done. To do so it is sufficient to issue `SELECT COUNT(*) FROM t1;` from `node_2` before turning off wsrep. The `SELECT` will trigger `wsrep_sync_wait` and proceed only after the `INSERT SELECT` from node_1 is done.
| | * | | | Disable test galera_var_auto_inc_control_on as it fails.Jan Lindström2018-04-063-0/+22
| | |/ / /
| | * | | Fix a compilation errorMarko Mäkelä2018-04-062-2/+4
| | | | |
| | * | | MDEV-15566: System tablespace does not easily key rotate to unencryptedJan Lindström2018-04-064-36/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem was that key rotation from encrypted to unecrypted was skipped when encryption is disabled (i.e. set global innodb-encrypt-tables=OFF). fil_crypt_needs_rotation If encryption is disabled (i.e. innodb-encrypt-tables=off) and there is tablespaces using default encryption (e.g. system tablespace) that are still encrypted state we need to rotate them from encrypted state to unencrypted state.
| | * | | MDEV-13549: Galera test failuresJan Lindström2018-04-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | Fix test case galera_toi_ddl_nonconflicting as we need to wait until both alter tables are finished on that Galera node.
| | * | | MDEV-14705: Follow-up fixesMarko Mäkelä2018-04-066-24/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buf_flush_remove(): Disable the output for now, because we certainly do not want this after every page flush on shutdown. It must be rate-limited somehow. There already is a timeout extension for waiting the page cleaner to exit in logs_empty_and_mark_files_at_shutdown(). log_write_up_to(): Use correct format. srv_purge_should_exit(): Move the timeout extension to the appropriate place, from one of the callers.
| | * | | MDEV-13549: Galera test failuresJan Lindström2018-04-062-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Fix test case galera.pxc-421 to reset auto_increment_offset correctly.
| | * | | MDEV-14705: slow innodb startup/shutdown can exceed systemd timeoutDaniel Black2018-04-0618-30/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use systemd EXTEND_TIMEOUT_USEC to advise systemd of progress Move towards progress measures rather than pure time based measures. Progress reporting at numberious shutdown/startup locations incuding: * For innodb_fast_shutdown=0 trx_roll_must_shutdown() for rolling back incomplete transactions. * For merging the change buffer (in srv_shutdown(bool ibuf_merge)) * For purging history, srv_do_purge Thanks Marko for feedback and suggestions.
| | * | | MDEV-14705: Speed up InnoDB shutdownDaniel Black2018-04-062-44/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by Marko on github pr #576 buf_all_freed only needs to be called once, not 3 times. buf_all_freed will always return TRUE if it returns. It will crash if any page was not flushed so its effectively an assert anyway. The following calls are likely redundant and could be removed: fil_flush_file_spaces(FIL_TYPE_TABLESPACE); fil_flush_file_spaces(FIL_TYPE_LOG);
| | * | | MDEV-14705: Do not rollback on InnoDB shutdownMarko Mäkelä2018-04-066-46/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | row_undo_step(): If fast shutdown has been requested, abort the rollback of any non-DDL transactions. Starting with MDEV-12323, we aborted the rollback of recovered transactions. These transactions would be rolled back on subsequent server startup. trx_roll_report_progress(): Renamed from trx_roll_must_shutdown(), now that the shutdown check has been moved to the only caller.
| | * | | Fix out of array access.Jan Lindström2018-04-061-1/+1
| | | | |
| | * | | MDEV-13549: Galera test failuresJan Lindström2018-04-051-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable tests that pass on 10.1: galera_var_auto_inc_control_on galera_var_retry_autocommit pxc-421 lp1376747-2 lp1376747 galera_toi_ddl_nonconflicting galera_parallel_simple galera_admin galera_pc_ignore_sb galera_lock_table galera_unicode_identifiers galera.galera_gcs_fc_limit galera.galera_gtid
| | * | | MDEV-13549: Galera test failuresJan Lindström2018-04-053-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix test case MW-44 by disabling Galera replication of MyISAM tables (mysql.general_log especially) to avoid MDL lock wait later.