mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 02:16:32 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
	
		
			1.8 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| --source include/galera_cluster.inc
 | |
| 
 | |
| --disable_ps2_protocol
 | |
| 
 | |
| --connection node_2
 | |
| CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
 | |
| 
 | |
| SET SESSION wsrep_trx_fragment_size = 1;
 | |
| SET AUTOCOMMIT=OFF;
 | |
| START TRANSACTION;
 | |
| 
 | |
| INSERT INTO t1 VALUES (1);
 | |
| 
 | |
| --connect node_2a, 127.0.0.1, root, , test, $NODE_MYPORT_2
 | |
| --connection node_2a
 | |
| SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
 | |
| 
 | |
| --connection node_1
 | |
| SELECT COUNT(*) > 0 FROM mysql.wsrep_streaming_log;
 | |
| SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
 | |
| SELECT COUNT(*) > 0 FROM t1;
 | |
| 
 | |
| --connection node_2a
 | |
| SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
 | |
| SET SESSION wsrep_sync_wait=0;
 | |
| 
 | |
| --connection node_2
 | |
| --error ER_LOCK_DEADLOCK
 | |
| INSERT INTO t1 VALUES (2);
 | |
| 
 | |
| --connection node_2a
 | |
| --let $wait_condition = SELECT VARIABLE_VALUE = 'non-Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
 | |
| --source include/wait_condition.inc
 | |
| 
 | |
| --connection node_2
 | |
| --error ER_UNKNOWN_COM_ERROR
 | |
| COMMIT;
 | |
| 
 | |
| --connection node_2a
 | |
| SET GLOBAL wsrep_provider_options = 'gmcast.isolate=0';
 | |
| --let $wait_condition = SELECT VARIABLE_VALUE = 3 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
 | |
| --source include/wait_condition.inc
 | |
| --let $wait_condition = SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
 | |
| --source include/wait_condition.inc
 | |
| --let $wait_condition = SELECT VARIABLE_VALUE = 'ON' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_ready';
 | |
| --source include/wait_condition.inc
 | |
| DROP TABLE t1;
 | |
| 
 | |
| CALL mtr.add_suppression("replication aborted");
 | |
| CALL mtr.add_suppression("WSREP: fragment replication failed: 3");
 | |
| CALL mtr.add_suppression("WSREP: failed to send SR rollback for ");
 | |
| 
 | |
| --connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
 | |
| --connection node_3
 | |
| --source include/galera_wait_ready.inc
 | |
| 
 | |
| --enable_ps2_protocol
 | 
