mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 02:46:29 +01:00 
			
		
		
		
	 133e26fd7d
			
		
	
	
	133e26fd7d
	
	
	
		
			
			Problem was caused by MDEV-31413 commit 277968aa where
mysql.gtid_slave_pos table was replicated by Galera.
However, as not all nodes in Galera cluster are replica
nodes, rows were not deleted from table.
In this fix this is corrected so that mysql.gtid_slave_pos
table is not replicated by Galera. Instead when Galera
node receives GTID event and wsrep_gtid_mode=1, this event
is stored to mysql.gtid_slave_pos table.
Added test case galera_2primary_replica for 2 async
primaries replicating to galera cluster.
Added test case galera_circular_replication where
async primary replicates to galera cluster and
one of the galera cluster nodes is master
to async replica.
Modified test case galera_restart_replica to monitor
gtid positions and rows in mysql.gtid_pos_table.
		
	
			
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			375 B
		
	
	
	
		
			INI
		
	
	
	
	
	
| !include ../galera_3nodes_as_slave.cnf
 | |
| 
 | |
| [mysqld]
 | |
| wsrep-debug=1
 | |
| 
 | |
| [mysqld.1]
 | |
| server_id=15
 | |
| wsrep_gtid_mode=1
 | |
| wsrep_gtid_domain_id=16
 | |
| gtid_domain_id=11
 | |
| gtid_strict_mode=1
 | |
| 
 | |
| [mysqld.2]
 | |
| server_id=15
 | |
| wsrep_gtid_mode=1
 | |
| wsrep_gtid_domain_id=16
 | |
| gtid_domain_id=11
 | |
| gtid_strict_mode=1
 | |
| 
 | |
| [mysqld.3]
 | |
| server_id=15
 | |
| wsrep_gtid_mode=1
 | |
| wsrep_gtid_domain_id=16
 | |
| gtid_domain_id=11
 | |
| gtid_strict_mode=1
 |