Bug #99282 Document details of auto-position protocol
| Submitted: | 16 Apr 2020 18:34 | Modified: | 5 May 2020 9:40 |
|---|---|---|---|
| Reporter: | Sven Sandberg | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
| Version: | 5.7 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[16 Apr 2020 18:34]
Sven Sandberg
[5 May 2020 9:40]
Margaret Fisher
Posted by developer: Thanks Sven! Added this in 8.0 and 5.7: To do this, the master first identifies the appropriate binary log file to begin working with, by checking the Previous_gtids_log_event in the header of each of its binary log files, starting with the most recent. When the master finds the first Previous_gtids_log_event which contains no transactions that the slave is missing, it begins with that binary log file. This method is efficient and only takes a significant amount of time if the slave is behind the master by a large number of binary log files. The master then reads the transactions in that binary log file and subsequent files up to the current one, sending the transactions with GTIDs that the slave is missing, and skipping the transactions that were in the GTID set sent by the slave. The elapsed time until the slave receives the first missing transaction depends on its offset in the binary log file.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.