[MDEV-13895] GTID and Master_Delay causes excessive initial delay Created: 2017-09-22 Updated: 2019-11-10 Resolved: 2019-03-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.2.8, 10.2 |
| Fix Version/s: | 10.2.24, 10.3.14, 10.4.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marcus Zambrano | Assignee: | Sujatha Sivakumar (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Seconds_Behind_Master, seconds-behind-master | ||
| Environment: |
RHEL 6 x86_64 |
||
| Issue Links: |
|
||||||||
| Description |
|
When attempting to delay a Slave attached with GTID, there appears to be an extra delay applied initially. For example, this output reflects a Slave that is already delayed by 43200 seconds. When switching to GTID replication, replication is paused until SQL_Remaining_Delay counts down to 0: MariaDB [(none)]> stop slave; CHANGE MASTER TO master_use_gtid=current_pos; CHANGE MASTER TO MASTER_DELAY=43200; start slave; Relay_Master_Log_File: bin-log.018039 When switching to conventional replication coordinates, the delay is applied as expected: MariaDB [(none)]> change master to master_log_file='bin-log.018040', master_log_pos=20289860; Relay_Master_Log_File: bin-log.018040 |
| Comments |
| Comment by Elena Stepanova [ 2017-09-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report. The test below is for reproducing only, do not put it into the regression suite! The test sets delay to 20 seconds, then runs 2 inserts on master with 10-second interval, and checks status on the slave over the next minute.
At the end the slave catches up.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2018-10-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Most probably the case hosts MDEV-17469's greater-than-expected SBM which also happens there having GTID replication mode. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2019-03-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Andrei, Please refer the following branch for the patch. bb-10.2- Kindly review the changes. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2019-03-25 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The patch looks good, thank for this piece of work and analysis! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2019-03-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fix for this issue is implemented as part of following commit in 10.2.24. e42192d7b3821640bcf18c58dc303a2338c6d1aa |