- 08 Apr, 2018 3 commits
-
-
Jan Lindström authored
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
-
Jan Lindström authored
Make sure DDL's (create tables) are replicated before continuing to lock table.
-
Jan Lindström authored
Disable occasionally failing test cases pxc-421 query_cache galera_parallel_simple
-
- 07 Apr, 2018 4 commits
-
-
Marko Mäkelä authored
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.
-
Vicențiu Ciorbaru authored
-
Jan Lindström authored
-
Jan Lindström authored
MDEV-13549 Fix test galera.galera_wsrep_desync_wsrep_on
-
- 06 Apr, 2018 12 commits
-
-
Jan Lindström authored
-
Daniele Sciascia authored
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.
-
Marko Mäkelä authored
-
Jan Lindström authored
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.
-
Jan Lindström authored
Fix test case galera_toi_ddl_nonconflicting as we need to wait until both alter tables are finished on that Galera node.
-
Sergey Vojtovich authored
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.
-
Marko Mäkelä authored
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.
-
Jan Lindström authored
Fix test case galera.pxc-421 to reset auto_increment_offset correctly.
-
Daniel Black authored
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.
-
Daniel Black authored
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);
-
Marko Mäkelä authored
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.
-
Jan Lindström authored
-
- 05 Apr, 2018 10 commits
-
-
Jan Lindström authored
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
-
Jan Lindström authored
Fix test case MW-44 by disabling Galera replication of MyISAM tables (mysql.general_log especially) to avoid MDL lock wait later.
-
Jan Lindström authored
Test did not reset modified variables correctly.
-
Jan Lindström authored
galera_wsrep_desync_wsrep_on test does work on 10.1
-
Jan Lindström authored
Fix test failure on galera_gcs_fragment. Test requires Galera debug library with debug_sync functionality.
-
Jan Lindström authored
MDEV-13549 Fix and re-enable MTR test galera.MW-284
-
Daniele Sciascia authored
The following changes are committed: * `RESET MASTER` at the end of the test. This was necessary to allow the test to run on repeated runs. * `--source include/galera_wait_ready.inc` after setting `gmcast.isolate=0` to get back to a primary component. * Fix for assertion in `Protocol::end_statement()`. The assertion is due to the fact that function `do_command()` calls `thd->protocol->end_statement()`, without setting an error, when it is detected that galera is not ready yet. Following line somehow disappeared in a past merge: ``` my_message(ER_UNKNOWN_COM_ERROR, "WSREP has not yet prepared node for application use", MYF(0)); ```
-
Ian Gilfillan authored
-
Jan Lindström authored
Fix test failure on galera_toi_dll_fk_insert. DEFAULT value seems to be 3 but test expects it to be 1.
-
Jan Lindström authored
MDEV-13549 Fix and re-enable MTR test galera.mysql-wsrep#90
-
- 04 Apr, 2018 1 commit
-
-
Jan Lindström authored
MDEV-13549 Fix and re-enable MTR test galera.galera_gra_log
-
- 03 Apr, 2018 10 commits
-
-
Vicențiu Ciorbaru authored
-
Daniele Sciascia authored
Test galera checks that a `GRA_x_x.log` file is created whenever wsrep applier fails to apply some replication event. The file contains the corresponding binlog event that failed to apply. The test creates a new file by concatenating a pre-recorded file containing the binlog header (see `std-data/binlog-header.log`) and the `GRA_x_x.log` file. The test then checks that the resulting file, containing the binlog header and the event that failed to apply, is correctly read by `mysqlbinlog` program. The test fails in MariaDB because the GRA_x_x.log file created by MariaDB already contains the binlog header (see MDEV-7867). This patch fixes/simplifies test `galera.galera_gra_log` so that it doesn't concatenate `std-data/binlog-header.log` with the `GRA_x_x.log` file. File `std-data/binlog-header.log` is deleted altoghether, because not used by any other test.
-
Michael Gmelin authored
(Currently) LibreSSL doesn't calculate the string length of the hostname that's passed to X509_check_host automatically in case namelen/chklen is 0. This causes server certificate validation to fail when building MariaDB with LibreSSL. The proposed fix makes MariaDB determine the string length passed to X509_check_host. As there are no ill side-effects (OpenSSL's X509_check_host also simply calls strlen if namelen == 0, see also X509_check_host(3)), this wasn't wrapped in any #ifdef like constructs. Please see here for a proposed patch to modify LibreSSL's behavior: https://github.com/libressl-portable/openbsd/pull/87
-
Sergei Golubchik authored
-
Sergei Golubchik authored
warning: format '%p' expects argument of type 'void *', but argument 4 has type 'long int'
-
Alexander Barkov authored
-
Daniel Black authored
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.
-
Jan Lindström authored
MariaDB adjustments. mysqltest.cc : Allow 12 error codes at --error wait_until_connected_again.inc: Replace numeric error codes with symbols mysqltest.test: Add error codes to test that tests too many errorcodes
-
Daniele Sciascia authored
kill_galera.inc can no longer rely on wait_until_connected_again.inc. This is because wait_until_connected_again now tries to make sure that the server it is connected eventually transition to ready state. Whereas some tests may need to kill galera while the server is in a non-primary view.
-
Daniele Sciascia authored
Test galera_3nodes.galera_pc_weight started to fail because it expects to use wait_until_connected_again while remaining in non-primary view. Hopefully this is the only test which makes this assumption, and fortunately those wait_until_connected_again seem unnecessary, so this patch removes them.
-