mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	reenable some test after adding sync_with_master to end of test
    to make sure that binlog has been applied to slave before end of test
mysql-test/t/disabled.def:
  reenable test after adding extra sync_with_master
mysql-test/t/rpl_ndb_func003.test:
  add sync slave with master, to make sure that binlog has been applied to slave before end of test
mysql-test/t/rpl_ndb_idempotent.test:
  add sync slave with master, to make sure that binlog has been applied to slave before end of test
mysql-test/t/rpl_row_basic_7ndb.test:
  add sync slave with master, to make sure that binlog has been applied to slave before end of test
mysql-test/t/rpl_truncate_7ndb.test:
  add sync slave with master, to make sure that binlog has been applied to slave before end of test
		
	
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| --source include/have_ndb.inc
 | |
| --source include/master-slave.inc
 | |
| --source include/have_binlog_format_mixed_or_row.inc
 | |
| 
 | |
| --disable_query_log
 | |
| --disable_warnings
 | |
| connection slave;
 | |
| STOP SLAVE;
 | |
| connection master;
 | |
| DROP TABLE IF EXISTS t1;
 | |
| RESET MASTER;
 | |
| connection slave;
 | |
| DROP TABLE IF EXISTS t1;
 | |
| RESET SLAVE;
 | |
| START SLAVE;
 | |
| --enable_warnings
 | |
| --enable_query_log
 | |
| 
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
 | |
| INSERT INTO t1 VALUES (1,1), (2,2);
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Slave ****
 | |
| # This is silly, but NDB doesn't add to the binlog fast enough
 | |
| --real_sleep 10
 | |
| sync_slave_with_master;
 | |
| INSERT INTO t1 VALUE (3,3);
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| TRUNCATE TABLE t1;
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Slave ****
 | |
| sync_slave_with_master;
 | |
| # Should be empty
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| DROP TABLE t1;
 | |
| --replace_regex /\/\* xid=[0-9]+ \*\//\/* xid= *\// /table_id: [0-9]+/table_id: #/
 | |
| --replace_result $SERVER_VERSION SERVER_VERSION
 | |
| SHOW BINLOG EVENTS;
 | |
| 
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
 | |
| INSERT INTO t1 VALUES (1,1), (2,2);
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Slave ****
 | |
| sync_slave_with_master;
 | |
| INSERT INTO t1 VALUE (3,3);
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| DELETE FROM t1;
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Slave ****
 | |
| sync_slave_with_master;
 | |
| # Should be empty
 | |
| SELECT * FROM t1 ORDER BY a,b;
 | |
| --echo **** On Master ****
 | |
| connection master;
 | |
| DROP TABLE t1;
 | |
| --replace_regex /table_id: [0-9]+/table_id: #/
 | |
| --replace_result $SERVER_VERSION SERVER_VERSION
 | |
| SHOW BINLOG EVENTS;
 | |
| 
 | |
| -- source include/master-slave-end.inc
 |