[MDEV-15010] Wrong Seconds_Behind_Master when only starting the SQL_Thread. Created: 2018-01-20 Updated: 2023-11-27 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2.12, 10.2 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jean-François Gagné | Assignee: | Andrei Elkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | seconds-behind-master, upstream | ||
| Description |
|
Hi, When I run replication normally, I get a value in "Seconds_Behind_Master" from "SHOW SLAVE STATUS". However, when I run only the SQL Thread (on local relay logs that have been downloaded previously), I have "NULL" in "Seconds_Behind_Master". I would expect to have a numeric value. Also, note that the manual ([1]) does not document a "NULL" value in "Seconds_Behind_Master", even if "NULL" is shown when the SQL Thread is not running. This might be a different bug thought and is documentation related. [1]: https://mariadb.com/kb/en/library/show-slave-status/
Many thanks for looking into that, JFG |
| Comments |
| Comment by Elena Stepanova [ 2018-01-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It looks like a usual documentation deficiency. MySQL manual actually describes it quite explicitly:
https://dev.mysql.com/doc/refman/5.6/en/show-slave-status.html So, both before and after 5.6.9, the field was/is NULL when IO thread was not running.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2018-01-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks elenst for bring some background and showing it with a test! Indeed Mariadb behaviour in this regard is like mysql before 5.6.9: NULL is displayed | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sujatha Sivakumar (Inactive) [ 2019-06-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello Andrei, Can you please review the fixes for MDEV-15010. http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-5.5-sujatha Thank you |