[MDEV-9325] inaccurate seconds behind master calculation in chained replication Created: 2015-12-26 Updated: 2016-01-08 Resolved: 2016-01-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.0.23 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alex | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
CentOS 6.7 |
||
| Description |
|
Hello, In one of my projects I have a chained replication setup: The configuration isn't using GTID. Lately 1st slave (intermediate master) started delaying behind primary master (caused by problems I am recently working on). Last slave in a chain is always 0 seconds behind master, however, sometimes it reports the global delay that happens on an intermediate master (the 1st slave in a chain), like if it's aware of the whole topology and a replication delay on that intermediate master. What I know about calculation of 'seconds behind master' is that last executed query's timestamp is compared to the very recent query's timestamp received from the master (meaning newest query in relay log). As a result, I am not sure I always know what is the real delay on last slave. Thanks! |
| Comments |
| Comment by Elena Stepanova [ 2016-01-08 ] |
|
I don't see how the behavior could have been different on 5.5. Timestamps or events replicated through a chain are preserved, it is even explicitly documented in MySQL manual in the context of Seconds_Behind_Master:
Same in 5.5, 5.6, 5.7. Possibly you had somewhat different workflow when you were on 5.5 (for example, maybe you had direct updates on the intermediate master which made you believe that Seconds_Behind_Master really shows the difference between the last slave and the intermediate master/slave). |
| Comment by Alex [ 2016-01-08 ] |
|
Hi Elena, Thank you for your time and the input! Alex |