Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

mariadb replication error on slave restart

$
0
0

I have mariadb galera cluster running, with 1 slave for replication. everything works fine, but when I restart slave, I get such log:

150814 14:31:44 [Note] Master 'mariadb1': Slave I/O thread: connected to master 'slave@192.168.1.211:3306',replication starts at GTID position '0-1-225'

150814 14:31:44 [ERROR] Master 'mariadb1': Error reading packet from server: Error: connecting slave requested to start from GTID 0-1-225, which is not in the master's binlog ( server_errno=1236)

150814 14:31:44 [ERROR] Master 'mariadb1': Slave I/O: Got fatal error 1236 from master when reading data from binary log: 'Error: connecting slave requested to start from GTID 0-1-225, which is not in the master's binlog', Internal MariaDB error code: 1236

150814 14:31:44 [Note] Master 'mariadb1': Slave I/O thread exiting, read up to log 'binlog.000002', position 9331; GTID position 0-1-225

but after I enter "start all slaves" manually, it starts well from that very GTID:

150814 14:33:04 [Note] Master 'mariadb1': Slave I/O thread: connected to master 'slave@192.168.1.211:3306',replication starts at GTID position '0-1-225'

also, if I stop slaves, insert something in master server and start start slave, it gives such error again, while data is not replicated (I dont get that inserted row). if I enter "start all slaves" again, it starts correctly, catching up with that insert.

What's wrong?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>