Diagnostic step 1
Enable increased replication debug logging on the replica (log_slave_updates and log-warnings; set log_error_verbosity higher or enable --debug-slave for short windows) and reproduce during a controlled network flap.
Generated Oct 14, 2026, 9:39:02 AM
Enable increased replication debug logging on the replica (log_slave_updates and log-warnings; set log_error_verbosity higher or enable --debug-slave for short windows) and reproduce during a controlled network flap.
When SQL thread becomes idle, capture SHOW ENGINE INNODB STATUS, SHOW PROCESSLIST, and EXPLAIN for likely blocking transactions to detect locks or long-running queries.
Compare relay_log_info and relay logs before and after manual restart; back them up and run mysqlbinlog to inspect event boundaries around the last applied position.
Temporarily lengthen slave_net_timeout and net_read_timeout to reduce disconnect churn and observe whether condition still occurs (test in maintenance window).
If reproducing reliably, escalate to MySQL support or check upstream bug tracker with collected logs/packet captures; consider automating a safe watchdog to issue STOP SLAVE; START SLAVE when SQL thread is idle for X minutes as a temporary mitigation (ensure you understand implications for GTID and transaction safety).