mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 19:06:14 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			544 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			544 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| connection node_2;
 | |
| connection node_1;
 | |
| CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
 | |
| connection node_2;
 | |
| SET GLOBAL wsrep_provider_options = "repl.causal_read_timeout=PT1S";
 | |
| FLUSH TABLES WITH READ LOCK;
 | |
| connection node_1;
 | |
| INSERT INTO t1 VALUES (1);
 | |
| connection node_2;
 | |
| SHOW TABLES;
 | |
| ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 | |
| SELECT * FROM t1;
 | |
| ERROR HY000: Lock wait timeout exceeded; try restarting transaction
 | |
| UNLOCK TABLES;
 | |
| SHOW TABLES;
 | |
| Tables_in_test
 | |
| t1
 | |
| SELECT COUNT(*) = 1 FROM t1;
 | |
| COUNT(*) = 1
 | |
| 1
 | |
| DROP TABLE t1;
 | 
