[MDEV-26176] gtid_current_pos on Galera Cluster is not updating Created: 2021-07-19 Updated: 2021-09-14 Resolved: 2021-08-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera, Replication |
| Affects Version/s: | 10.5.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Pon Suresh Pandian (Inactive) | Assignee: | Ramesh Sivaraman |
| Resolution: | Not a Bug | Votes: | 1 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.7.1908 (Core) |
||
| Attachments: |
|
| Description |
|
The gtid_current_pos variable on galera node does not get updated on other nodes. I have 2 node galera cluster along with maxscale. From maxscale : [root@ip-172-31-12-219 centos]# maxctrl list servers As per the maxscale, server1 is a master and it's showing gtid_current_pos "1-1-15". Server 1: MariaDB [(none)]> show global variables like '%gtid%';
------------------------
------------------------ Server 2 : MariaDB [(none)]> show global variables like 'gtid%';
------------------------
------------------------ In server2 the gtid_current_pos is empty. Now I have stopped the mariadb service in server1. [root@ip-172-31-12-219 centos]# maxctrl list servers MariaDB [test]> create table t1 (id int,name varchar(20)); MariaDB [test]> insert into t1 values(1,'kjsdlad'); MariaDB [test]> insert into t1 values(2,'mmznb'); MariaDB [test]> insert into t1 values(3,'rock'); MariaDB [test]> insert into t1 values(4,'khlcsk'); MariaDB [test]> insert into t1 values(5,'lcsk'); MariaDB [test]> show global variables like 'gtid%';
------------------------
------------------------ why we are not seeing gtid_current_pos for other slave servers ? If I switch the master server still it's showing empty. |
| Comments |
| Comment by Ramesh Sivaraman [ 2021-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ponsuresh.pandians Could not reproduce the issue on version 10.5.10. The gtid_current_pos in Node 2 is updated with each transaction in Node 1.. Could you please share the configuration files from both nodes?
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Pon Suresh Pandian (Inactive) [ 2021-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi Ramesh, Here I have attached the my.cnf for both nodes. Please check it. It's not working..
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2021-08-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ponsuresh.pandians Reproduced this with different server ids. This is an expected behavior, gtid_current_pos will be empty if GTID's server_id is not equal to the server's own server_id. gtid_current_pos will be updated if we use the same server ID on all nodes. http://mariadb.com/kb/en/gtid/#gtid_current_pos
|