Commit graph

103 commits

Author SHA1 Message Date
Philip Stoev
e9d805b845 Refs codership/mysql-wsrep#198 . MTR test case 2016-02-22 22:31:21 -05:00
Nirbhay Choubey
d45f0c117f refs codership/mysql-wsrep#198: Revert test changes from previous commit
Restore tests for FLUSH commands supported by MariaDB.
2016-02-22 22:30:14 -05:00
Teemu Ollakka
ea0b1837ed refs codership/mysql-wsrep#198 Removed code duplication, PXC specifics
* Total order isolation was started twice for FLUSH TABLES, from
  reload_acl_and_cache() and from mysql_execute_command(). Removed
  the reload_acl_and_cache() part.
* Removed PXC specific stuff from MTR tests
2016-02-22 22:21:29 -05:00
Daniele Sciascia
235bebe02e refs codership/mysql-wsrep#201
- Eliminates code duplication in query cache patch
- Reduces the number of iterations in mysql-wsrep#201.test
  to shorten the execution time
- Adds a new test case that exercises more scenarios
2016-02-22 22:10:51 -05:00
Nirbhay Choubey
17ac959716 Bug#1421360: Add Percona Server specific FLUSH statements.
- Restore FLUSH commands supported by MariaDB (removed in
the previous commit)
- Adjust test case
2016-02-22 22:07:59 -05:00
Teemu Ollakka
7d89deb0a3 refs codership/mysql-wsrep#198 fixed merge issues 2016-02-22 18:45:53 -05:00
Raghavendra D Prabhu
0ecc4fe2ac Bug#1421360: Add Percona Server specific FLUSH statements.
Added following:

        FLUSH CLIENT_STATISTICS
        FLUSH INDEX_STATISTICS
        FLUSH TABLE_STATISTICS
        FLUSH THREAD_STATISTICS
        FLUSH USER_STATISTICS

pertaining to USER STATISTICS
https://www.percona.com/doc/percona-server/5.6/diagnostics/user_stats.html

        FLUSH CHANGED_PAGE_BITMAPS

pertaining to changed page tracking.
https://www.percona.com/doc/percona-server/5.6/management/changed_page_tracking.html

Also, added tests for them.

(cherry picked from commit 7efe49010c7f217663f364657090812b4723f426)

Conflicts:
	mysql-test/suite/galera/r/galera_flush.result
	mysql-test/suite/galera/r/galera_flush_gtid.result
	mysql-test/suite/galera/t/galera_flush.test
	sql/sql_parse.cc
2016-02-22 18:00:28 -05:00
Raghavendra D Prabhu
1077eef942 PXC-391: Avoid Total Order Isolation (TOI) for LOCAL sql admin commands.
The admin commands in question are:
    > OPTIMIZE
    > REPAIR
    > ANALYZE

For LOCAL or NO_WRITE_TO_BINLOG invocations of these commands, ie

    OPTIMIZE LOCAL TABLE <t1>

they are not binlogged as expected.

Also, in addition, they are not executed under TOI.

Hence, they are not propagated to other nodes.

The effect is same as that of wsrep_on=0.

Also added tests for this.

A WSREP_DEBUG for wsrep_register_hton has also been added.

The galera_flush_local test has also been updated for verifying that effects
of  NO_WRITE_TO_BINLOG / LOCAL are equivalent to wsrep_on=0 from wsrep
perspective.

(cherry picked from commit 5065122f94a8002d4da231528a46f8d9ddbffdc2)

Conflicts:
	sql/sql_admin.cc
	sql/sql_reload.cc
	sql/wsrep_hton.cc
2016-02-22 17:59:06 -05:00
Philip Stoev
5be449d014 Galera MTR Tests: attempt to work around codership/QA#179 in galera_as_slave_nonprim.test 2016-02-22 17:53:58 -05:00
Philip Stoev
d794f05910 Galera MTR Tests: stability fix for galera_gcs_fragment.test (TCP port was output to the .result file) 2016-02-22 17:48:13 -05:00
Daniele Sciascia
ace86a2375 refs codership/mysql-wsrep#201
- Fixes query cache so that it is aware of wsrep_sync_wait.
  Query cache would return (possibly stale) results to the
  client, regardless of the value of wsrep_sync_wait.
- Includes the test case that reproduced the issue.
2016-02-22 17:46:22 -05:00
Teemu Ollakka
5ad30e8ad1 MTR test for checking correctness of fragmentation over CCs 2016-02-22 16:46:29 -05:00
Daniele Sciascia
c0dac420e5 refs codership/mysql-wsrep#31
- Removes useless call to wsrep_xid_init() in wsrep_apply_events().
  Transaction's xid is already initialized at that point.
- Adds call to wsrep_set_SE_checkpoint() for committing TOI events
  in the applier side.
- Includes test case that reproduced the issue.
2016-02-22 16:21:04 -05:00
Philip Stoev
7ce84cf764 Galera MTR Tests: stability fixes
Conflicts:
	mysql-test/include/mtr_check.sql
	mysql-test/suite/galera/r/galera_log_bin.result
	mysql-test/suite/galera/t/galera_log_bin.test
2016-02-22 14:43:35 -05:00
Teemu Ollakka
d01328d73b Helpers to deal with galera dbug sync points. 2016-02-22 12:58:02 -05:00
Nirbhay Choubey
17b5cb6172 codership/mysql-wsrep#247: Fix test case 2016-02-17 22:56:38 -05:00
Philip Stoev
a6d93b20d7 Galera MTR Tests: MW-246 codership/mysql-wsrep#247 Stability fix for galera.mysql-wsrep#247.test 2016-02-17 16:05:11 -05:00
Philip Stoev
2438afbfde Galera MTR tests: MW-246 codership/mysql-wsrep#247 Additional tests around RSU and wsrep_desync 2016-02-17 16:04:06 -05:00
sjaakola
13627d49a9 refs MW-246
- created mtr test for testing explicit desyncing with RSU mode DDL
2016-02-17 16:03:40 -05:00
Nirbhay Choubey
8dfd157bb2 Merge branch '5.5-galera' into 10.0-galera 2015-12-19 19:19:32 -05:00
Nirbhay Choubey
3f515a09ff MDEV-9290 : InnoDB: Assertion failure in file trx0sys.cc line 353
As a fix for MDEV-8208, for initial wsrep threads, the
invocation of init_for_queries() was moved after plugins
were initialized. Due to which, OPTION_BEGIN bit of wsrep
applier THD (originally set in wsrep_replication_process)
got reset due to implicit commit within init_for_queries().
As a result, events from a multi-statement transaction from
another node were committed separately by the applier thread,
which leads to an assertion as they all carry same seqno.

Fixed by making sure that variable.option_bits are restored
post init_for_queries(). Also restored server_status.
Added a test case.
2015-12-16 20:07:12 -05:00
Nirbhay Choubey
75afa93eb1 Fix galera.galera_as_slave_nonprim test. 2015-11-20 12:32:31 -05:00
Nirbhay Choubey
dcb7996cb7 Fix/disable failing tests. 2015-11-15 17:24:47 -05:00
Nirbhay Choubey
8d2d947ac1 Fix galera_var_dirty_reads test. 2015-10-13 15:42:53 -04:00
Nirbhay Choubey
4d33f9dca0 Merge branch '5.5-galera' into 10.0-galera 2015-09-25 14:57:56 -04:00
Nirbhay Choubey
d54bc3c0d1 Cleanup: remove dead code which could also lead to race. 2015-09-21 20:49:31 -04:00
Nirbhay Choubey
a401c11c4e Fix failing test cases
* Also modified name regex to include '#' as a valid symbol for
tests under disabled.def.
2015-09-14 15:26:50 -04:00
Nirbhay Choubey
ceac34404b lp:1372840 - test case 2015-09-10 09:57:08 -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
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