[MDEV-30834] restoring a dump created by mysqldump doesn't restore table rows if the database is excluded from binary log using binlog_ignore_db option Created: 2023-03-12 Updated: 2023-12-11 Resolved: 2023-12-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication, Server |
| Affects Version/s: | 10.11.2 |
| Fix Version/s: | 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrea Janna | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Debian 12 |
||
| Issue Links: |
|
||||||||
| Description |
|
If binary logging is enabled but a specific database is excluded from the binary log by binlog_ignore_db option, then restoring a mysqldump to that specific database doesn't restore table rows although no error is reported. Affected MariaDB version: 10.11.2 — Steps to reproduce the issue — Execute the following SQL commands: Execute from the shell: — Expected result — — Actual result — — Workaround — |
| Comments |
| Comment by Sergei Golubchik [ 2023-05-19 ] | ||||||||
|
mtr test case:
run with ./mtr --mysqld='--binlog_ignore_db=test' | ||||||||
| Comment by Sergei Golubchik [ 2023-05-19 ] | ||||||||
|
likely, caused by InnoDB bulk insert optimization. requires unique_checks=0, foreign_key_checks=0, and engine=innodb. | ||||||||
| Comment by Marko Mäkelä [ 2023-12-11 ] | ||||||||
|
This was fixed in |