Error
Error Code:
1802
MariaDB Error 1802: MTS Slave Stopped with Error
Description
This error occurs on a MariaDB slave server configured for Multi-Threaded Replication (MTS). It indicates that the `CHANGE MASTER` command cannot be executed because the slave's replication process stopped unexpectedly, either due to an error or being forcefully terminated, leaving the relay logs in an inconsistent state or with 'gaps'.
Error Message
CHANGE MASTER cannot be executed when the slave was stopped with an error or killed in MTS mode. Consider using RESET SLAVE or START SLAVE UNTIL.
Known Causes
3 known causesAbrupt Slave Shutdown
The MariaDB slave server process was terminated forcefully or crashed unexpectedly while replication was active in MTS mode, leaving the relay logs in an inconsistent state.
Replication Thread Error
One or more replication applier threads encountered an unhandled error during transaction application, causing the slave to stop in an inconsistent state.
Manual Thread Termination
Replication applier threads were manually killed (e.g., using KILL QUERY or KILL CONNECTION) while the slave was actively replicating in MTS mode, leading to an incomplete state.
Solutions
Coming SoonGeneral Troubleshooting Tips
- Check the error message carefully for specific details
- Review recent changes that might have caused the error
- Search for the exact error code in the official documentation
- Check log files for additional context
- Try restarting the application or service