This blog explains how relay log recovery happens in a scenario
where an applier thread (SQL_Thread) is starting for the first
time and its starting position is not available for relay log
recovery operations. If you are using GTIDs with MASTER_AUTO_POSITION then the
following is more or less irrelevant since we then employ a more
resilient repositioning scheme. The potential issue described
here will also not occur if you have employed crash-safe replication settings,
including --sync_master_info=1. With those
disclaimers out of the way, let’s proceed.
Background
A crash-safe slave in MySQL …
[Read more]