[MDEV-31140] FLUSH BINARY LOGS DELETE_DOMAIN_ID=(D) can errorneously delete active domains Created: 2023-04-27 Updated: 2023-06-07 Resolved: 2023-05-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.1.30, 10.2.11, 10.3.10, 10.4.0, 10.5.0, 10.6.0, 10.8.1, 10.9.1, 10.10.1, 10.11.1, 11.0.1, 10.7 |
| Fix Version/s: | 10.11.5, 11.0.3, 11.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kristian Nielsen | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Suppose the binlog contains the following: GTID_LIST [1-1-1, 1-2-2] The gtid_binlog_state is "1-1-1,1-2-3". Then the following statement will FLUSH BINARY LOGS DELETE_DOMAIN_ID=(1) This will leave the binlog in a corrupt state with empty gtid_binlog_state The problem is that this code in drop_domain() implements the wrong test (it
I will implement a patch for review. Test case:
|
| Comments |
| Comment by Kristian Nielsen [ 2023-05-03 ] |
|
Pushed to 10.11 |