[MDEV-24844] slave replicate only DDL from master after failover Created: 2021-02-11 Updated: 2021-03-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Platform Debian, Replication |
| Affects Version/s: | 10.1.22 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | youngchen | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
OS: Debian GNU/Linux 9.8 (stretch) |
||
| Attachments: |
|
| Description |
|
Background:
Description:
Kindly advise the probable cause and how to fix this promblem. |
| Comments |
| Comment by Alice Sherepa [ 2021-02-11 ] |
|
I will describe as I understand the situation, please correct me. |
| Comment by youngchen [ 2021-02-12 ] |
|
Hi, thanks for your quick response, please see my answer below: row-based replication? my-3313.cnf - is the configuration of a new slave? Then you perform create table + insert on the master and on the slave the table was created, but no data was inserted. Can you reproduce this with a newer MariaDB release (10.1 is EOL)? please see binlog of new master from attachment "binlog_new_master.log" |
| Comment by youngchen [ 2021-02-12 ] |
|
Tried to setup a new slave with 10.3.18, not working... |
| Comment by Alice Sherepa [ 2021-02-12 ] |
|
Could you please add the actual binlog file, not the binlog_new_master.log, because it is not clear how it is produced. One of suspicion is the option --base64-output=DECODE-ROWS (as described here https://www.percona.com/blog/2015/07/30/why-base64-outputdecode-rows-does-not-print-row-events-in-mysql-binary-logs/) |
| Comment by youngchen [ 2021-02-12 ] |
| Comment by youngchen [ 2021-02-12 ] |
|
Please see the binlog file "mysql-bin.002415.part", thanks. |