[MDEV-25999] Unrealistic "Seconds behind master" value Created: 2021-06-23 Updated: 2022-09-30 Resolved: 2022-09-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.42 |
| Type: | Bug | Priority: | Major |
| Reporter: | Niranjan | Assignee: | Angelique Sklavounos (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
== Unrealistic "Seconds behind master" value reported in "Show slave status" Able to reproduce the issue on 10.2.38. |
| Comments |
| Comment by Niranjan [ 2021-06-23 ] | |||||||||||
|
STEPS TO REPRODUCE THE ISSUE: == Set up replication between two MariaDB servers (running on 10.2.38) == On the "replica" server, repeatedly monitor the seconds behind master by running "show slave status\G" == I have grepped the output to show only the required details. Pasting a part of it below: Replica_Output – – – – – – – – – – – – Looking at the binary logs of the "Primary" instance corresponding to "Relay_Master_Log_File" and "Exec_Master_Log_Pos", I can just see that its the starting of the file (immediately after rotation of older file).
— | |||||||||||
| Comment by Andrei Elkin [ 2022-05-30 ] | |||||||||||
|
bnestere, could you please verify whether the description fits to the fixed | |||||||||||
| Comment by Angelique Sklavounos (Inactive) [ 2022-09-30 ] | |||||||||||
|
It was possible to reproduce this with 10.2.38 by following the steps in the first comment and using a script to output SHOW SLAVE STATUS\G to a file in an infinite loop until manually killed. Grepping for "Slave_SQL_Running_State: Reading event from the relay log" would sometimes show Seconds_Behind_Master as a value on the order of hundreds or thousands of seconds, and always increasing, as described. The issue no longer appears in 10.2.42, and testing showed that commit 96de6bf did not have the behavior, while the parent commit 452c9a4 still had the issue. |