[MDEV-16382] Add tracking support for gtid_current_pos Created: 2018-06-04 Updated: 2023-07-20 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | markus makela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The tracking of last_gtid makes it possible to detect changes in GTID within the session. Adding tracking support for all GTID related variables (mainly gtid_current_pos) would enable the detection of GTID changes done by other sessions. This change would provide functionality similar to that of the MySQL 5.7 GTID tracking but with no changes to protocol. |
| Comments |
| Comment by Daniel Black [ 2023-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
is this needed now that the session system variable monitoring is implemented? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don't think changes in gtid_current_pos are sent to clients. I haven't tested it with the latest releases, has there been a change that would add tracking for it? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2023-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
If its added to session_track_system_variables='gtid_current_pos' does it track? If not that probably could be considered a bug. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by markus makela [ 2023-07-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Doesn't seem to, I tested with both session_track_system_variables=* and session_track_system_variables=gtid_current_pos,gtid_slave_pos,gtid_binlog_pos using the following test program:
This is the output it produced with session_track_system_variables=*:
With session_track_system_variables=gtid_current_pos,gtid_slave_pos,gtid_binlog_pos it prints nothing since the GTID position variables aren't included in the tracking. |