I configured two MariaDB instance in Master-Slave configuration. As a test, I tried to see what happens when I manually purge binlogs. To my amazement, I have seen that even if I get an error message on the slave, the replica still works! Is this normal? This is the status after the show slave status command:
Master_User: root
Master_Port: 3306
Connect_Retry: 10
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 2314
Relay_Log_File: mysql-relay-bin.000004
Relay_Log_Pos: 535
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: No
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 2314
Relay_Log_Space: 1119
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 1236
Last_IO_Error: Got fatal error 1236 from master when reading data from
binary log: 'binlog truncated in the middle of event; consider out of
disk space on master; the first event 'mysql-bin.000001' at 2314, the last
event read from 'mysql-bin.000001' at 2314, the last byte read from
'mysql-bin.000001' at 2317.'
Last_SQL_Errno: 0
Last_SQL_Error:
As far as I can see Slave_SQL_Running is still active as opposed to Slave_IO_Running. Is he the one still running the replication? What happens if I don't reset Slave_IO_Running correctly and how can I possibly reset it?
Thank you in advance!