Commit graph

99 commits

Author SHA1 Message Date
Nirbhay Choubey
ceac34404b lp:1372840 - test case 2015-09-10 09:57:08 -04:00
Philip Stoev
f9510717a4 Galera MTR Tests: fix typo in the galera_as_slave_nonprim test, in suite/galera/galera_3nodes_as_slave.cnf 2015-09-10 00:26:41 -04:00
Philip Stoev
b3ec0a8589 Galera MTR Tests: a test for async slave + non-prim 2015-09-10 00:26:40 -04:00
Philip Stoev
c915d8caa6 Galera MTR Tests: attempt to work around codership/mysql-wsrep#179 2015-09-09 23:08:02 -04:00
Philip Stoev
371dc336ea refs codership/mysql-wsrep#90 MTR test case for mysql-wsrep#90 2015-09-09 23:04:43 -04:00
Philip Stoev
e5b595e9d1 Galera MTR Tests: fix typo in suite/galera/galera_2nodes_as_slave.cnf 2015-09-09 23:00:14 -04:00
Philip Stoev
ee22ac3808 Galera MTR Tests: Various test stability fixes (take #5) 2015-09-09 22:53:39 -04:00
Philip Stoev
7d73931cbc Galera MTR Tests: Various test stability fixes (take #4) 2015-09-09 22:53:38 -04:00
Philip Stoev
ff76214a46 Galera MTR Tests: Various test stability fixes (take #3) 2015-09-09 22:53:38 -04:00
Philip Stoev
fd0aaad547 Galera MTR Tests: Various test stability fixes (take #2) 2015-09-09 22:53:32 -04:00
Philip Stoev
997119dafe Galera MTR Tests: Various test stability fixes. 2015-09-09 22:45:58 -04:00
Philip Stoev
182b237d40 Galera MTR Tests: remove variable output from galera_gra_log.test (take #2) 2015-09-09 22:42:43 -04:00
Philip Stoev
c9d4581e8a Galera MTR Tests: remove variable output from galera_gra_log.test 2015-09-09 22:42:43 -04:00
Philip Stoev
2316a4e19f Galera MTR Tests: Tests for GRA*.log files, replication bundle, preordered events, forced binlog format 2015-09-09 22:42:42 -04:00
Philip Stoev
a1a7414b1d Galera MTR Tests: An end-to-end test with restoring a node from xtrabackup; a test for restoring the primary component via pc.bootstrap 2015-09-09 22:42:31 -04:00
Philip Stoev
3893b5c6da Galera MTR Tests: mark all tests operating on large data sets with --source include/big-test.inc to help with Valgrind 2015-09-09 22:41:02 -04:00
Philip Stoev
83579c2ff3 Galera MTR Tests: fixes for mysqldump SST/IST tests 2015-09-09 22:39:28 -04:00
Philip Stoev
10f5c08f4b Refs codership/QA#47. Additional tests for FTWRL. 2015-09-09 22:39:27 -04:00
Philip Stoev
6104a27c98 Galera MTR Tests: increase lock wait timeout in suite/galera/t/galera_many_rows.test 2015-09-09 22:39:26 -04:00
Philip Stoev
4a630ce6ad Galera MTR Tests: A test for xtrabackup with key+cert encryption. 2015-09-09 22:39:26 -04:00
Philip Stoev
edd9bd3ea7 Fixes codership/mysql-wsrep#153 use --defaults-extra-file with mysqldump SST 2015-09-09 22:39:20 -04:00
Philip Stoev
5d531f07bf Galera MTR Tests: Use SET GLOBAL when setting wsrep_replicate_myisam, as it is a GLOBAL variable in MySQL Galera Cluster and SESSION in Percona XTraDB Cluster 2015-09-09 22:35:48 -04:00
Raghavendra D Prabhu
fbe739cbb1 Bug#1421360: Add 'FLUSH TABLES' to Total Order Isolation execution.
Before this, FLUSH TABLES and FLUSH TABLES t1 (REFRESH_TABLES hereafter) were executed locally,
which also had implications for GTID. MySQL async replication does
replicate FLUSH TABLES.

Hence, this commit

a)  Adds REFRESH_TABLES to TOI.

b) Skips LOCK-based REFRESH_TABLES from TOI, ie. FLUSH TABLES WITH READ
LOCK and FLUSH TABLES FOR EXPORT.

c) Executes them after reload_acl_and_cache. This is done since
reload_acl_and_cache checks for thd->locked_tables_mode and does upgrade
of MDL locks accordingly. A failure here means REFRESH_TABLES cannot
run.

    i) This is also important since LOCK TABLES is not replicated in
    galera.

d) Test galera_flush has been modified for

    i) wsrep_replicate_myisam SESSION variable.

    ii) Testing REFRESH_TABLES.

    iii) Testing REFRESH_TABLES + LOCK TABLES.

e) Use different WSREP_TO_ISOLATION_BEGIN for global FLUSH TABLES and FLUSH TABLES <table,>.
2015-09-09 22:33:52 -04:00
Philip Stoev
5a002adb5f Galera MTR Tests: various tests and test fixes 2015-09-09 22:31:06 -04:00
Philip Stoev
f1a00ed514 Galera MTR Tests: Use wsrep_sst_auth for tests that use xtrabackup + IST 2015-09-09 22:31:05 -04:00
Philip Stoev
483078b1b1 Fixes codership/QA#87 . An MTR test for SERIALIZABLE 2015-09-09 21:40:07 -04:00
Philip Stoev
4102d5258d Refs codership/mysql-wsrep#113 - tests around FLUSH TABLE, FLUSH TABLES, LOCK TABLE 2015-09-09 21:38:58 -04:00
Philip Stoev
f9805e4c98 Galera MTR Tests: tests for WAN restart, xtrabackup options and others. 2015-09-09 21:36:03 -04:00
Alexey Yurchenko
ef7b08978b Fixes codership/mysql-wsrep#122 - causal/casual typos fixed in wsrep code 2015-09-09 21:35:58 -04:00
Philip Stoev
bace2a9752 Galera MTR Tests: add a test for socket.ssl_compression 2015-09-09 21:33:23 -04:00
Philip Stoev
045b31c8f4 Test cases for codership/mysql-wsrep/110 2015-09-09 21:04:35 -04:00
Philip Stoev
d0e24c6799 Galera MTR Tests: Attempt to remove rare sporadic failures in galera_transaction_replay.test by waiting for all transactions to get blocked before proceeding. 2015-09-09 20:56:48 -04:00
Philip Stoev
f8b724db28 Galera MTR Tests: Enable the use of --parallel for port-intensive Galera tests by additionally specifying --port-group-size=50 2015-09-09 20:56:41 -04:00
Nirbhay Choubey
f533b2b462 Merge branch '5.5-galera' into 10.0-galera 2015-08-25 11:15:45 -04:00
Nirbhay Choubey
4ee28865f6 MDEV-5146 : Bulk loads into partitioned table not working
When wsrep is enabled, for any update on innodb tables, the
corresponding keys are appended to galera's transaction writeset
(wsrep_append_keys()). However, for LOAD DATA, this got skipped
if binary logging was disabled or it was non-ROW based.
As a result, while the updates from LOAD DATA on non-partitioned
tables replicated fine as wsrep implicitly enables binary logging
(if not enabled, explicitly), the same did not work on partitioned
tables as for partitioned tables the binary logging gets disabled
temporarily (ha_partition::write_row()).

Fixed by removing the unwanted conditions from the check.
Also backported some changes from 10.0-galera to make sure
wsrep_load_data_splitting affects LOAD DATA commands only.
2015-08-20 20:55:52 -04:00
Nirbhay Choubey
ccd39b2dd3 Backport partition tests from 10.0-galera. 2015-08-20 09:55:54 -04:00
Nirbhay Choubey
c6a0cbdac6 Merge branch '5.5-galera' into 10.0-galera 2015-08-14 14:59:43 -04:00
Nirbhay Choubey
fe757e006c Fix for some failing tests. 2015-08-14 13:45:52 -04:00
Nirbhay Choubey
e996304189 MDEV-8617: Multiple galera tests failures with --ps-protocol
(Additional fixes in 10.0-galera branch)
* Reset THD's PS members before returning when node is
not ready.
* Update galera_suspend_slave.test
2015-08-14 01:31:38 -04:00
Nirbhay Choubey
8a18bb9694 Merge branch '5.5-galera' into 10.0-galera 2015-08-14 01:17:57 -04:00
Nirbhay Choubey
e998dffde7 MDEV-8598 : Failed MySQL DDL commands and Galera replication
RENAME TABLE, unlike other DDLs, was getting replicated before
the access check was performed. As a result, the command could
get get replicated and thus executed on other nodes, even if it
fails on the originating node due to permission issues. Fixed by
moving the logic to check user privileges before replicating the
command.
2015-08-12 17:47:25 -04:00
Nirbhay Choubey
4c69dc8116 MDEV#7501 : alter table exchange partition is not replicated in galera cluster
Added logic to replicate ALTER TABLE EXCHANGE PARTITION to other nodes
in the cluster.
2015-08-06 00:36:40 -04:00
Nirbhay Choubey
af2f7ce3f9 MDEV-8464 : ALTER VIEW not replicated in some cases
In galera, like other DDLs, CREATE/ALTER VIEW commands are recreated
and replicated during parsing. The ALGORITHM clause is internally set
to VIEW_ALGORITHM_INHERIT if its not explicitly specified by the user.
But since its not a valid type to be used in a command, it leads to an
assertion failure. The solution is to not include the ALGORITHM clause
in the command if its not explicitly specified (or INHERIT).
2015-07-19 22:51:19 -04:00
Nirbhay Choubey
6771b818a3 MDEV-8383 : "GRANT role TO user" does not replicate
Enable replication of GRANT/REVOKE ROLE commands across
galera nodes.
2015-07-10 19:06:42 -04:00
Nirbhay Choubey
70714d3597 Merge branch '5.5-galera' into 10.0-galera 2015-06-23 16:46:12 -04:00
Nirbhay Choubey
fc716dc5a5 MDEV-8260 : Issues related to concurrent CTAS
* Wait for aborted thd (victim) to release MDL locks
* Skip aborting an already aborted thd
* Defer setting OK status in case of CTAS
* Minor cosmetic changes
* Added a test case
2015-06-19 19:25:15 -04:00
Nirbhay Choubey
8c44fd63ac MDEV-8239 : Idle threads post-execution end up in closing tables state
Set thd's state to 'committed' only after it has done closing tables
(called indirectly by relay_group_info::cleanup_context()).
2015-06-19 00:17:25 -04:00
Nirbhay Choubey
6d5b723bdc Merge branch '5.5-galera' into 10.0-galera 2015-06-02 13:27:39 -04:00
Nirbhay Choubey
0bfae356d4 MDEV-8166 : Adding index on new table from select crashes Galera cluster
In wsrep, CTAS should be handled like a regular transaction.
Added a test case.
2015-05-16 11:11:26 -04:00
Nirbhay Choubey
14b816a5c8 Disabling some more sporadically failing galera tests. 2015-05-14 21:48:54 -04:00