[MXS-3677] The GTID of Galera Nodes is not displayed by maxctrl server list | maxscale 2.5.13 Created: 2021-07-19 Updated: 2021-09-14 Resolved: 2021-07-28 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | galeramon |
| Affects Version/s: | 2.5.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Pon Suresh Pandian (Inactive) | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 1 |
| Labels: | None | ||
| Environment: |
CentOS Linux release 7.7.1908 (Core) |
||
| Attachments: |
|
| Description |
|
I have installed 2 node galera cluster along with maxscale. If i run "maxctrl list servers" command It's showing only server1 GTID not other server. [root@ip-172-31-12-219 centos]# maxctrl list servers If I stopped the mariadb service on server1. Now server2 is promoted as a master and performed some writes on server2. 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'); In maxscale it's not showing any GTID on server2. Why this behaviour ? [root@ip-172-31-12-219 centos]# maxctrl list servers Here I have attached my maxscale config for your reference please check it. |
| Comments |
| Comment by markus makela [ 2021-07-19 ] | ||||||||||||||||
|
Looking at the source code the value is from the following query:
What does it return on your servers? | ||||||||||||||||
| Comment by Pon Suresh Pandian (Inactive) [ 2021-07-19 ] | ||||||||||||||||
|
Hi markus, Here i have mentioned the output please check it. Server1 : MariaDB [(none)]> SELECT @@gtid_current_pos, @@gtid_binlog_pos, @@read_only, @@server_id;
-------------------
------------------- Server2 : MariaDB [(none)]> SELECT @@gtid_current_pos, @@gtid_binlog_pos, @@read_only, @@server_id;
-------------------
------------------- | ||||||||||||||||
| Comment by markus makela [ 2021-07-19 ] | ||||||||||||||||
|
I think the lack of @@gtid_current_pos is the reason why it doesn't show the GTID position. | ||||||||||||||||
| Comment by Pon Suresh Pandian (Inactive) [ 2021-07-19 ] | ||||||||||||||||
|
Hi markus, I am not sure exactly ,so I created a new Jira to engineering team. Waiting for their reply. | ||||||||||||||||
| Comment by markus makela [ 2021-07-19 ] | ||||||||||||||||
|
What version of MariaDB are you using? I think this behavior might change if you use Galera from 10.6 with the GTID improvements it has. | ||||||||||||||||
| Comment by Pon Suresh Pandian (Inactive) [ 2021-07-20 ] | ||||||||||||||||
|
Hi Markus, I tried with MariaDB server - 10.5.10 (ES) | ||||||||||||||||
| Comment by markus makela [ 2021-07-28 ] | ||||||||||||||||
|
I'll close this as Not a Bug since this seems to be related to Galera not updating the value of the current GTID. MaxScale correctly shows the GTID for all the nodes that have one and only the ones that don't have aren't showing it. |