[MXS-4189] Database can't purge binary logs Created: 2022-06-17 Updated: 2022-07-05 Resolved: 2022-07-05 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | N/A |
| Affects Version/s: | 6.4.0 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Justin Bennett | Assignee: | markus makela |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Physical on prem and virtualised, MariaDB 3 node clusters |
||
| Attachments: |
|
| Description |
|
Hi We have 2 mariadb 3 node clusters behind maxscale. We are seeing an issue where binary logs aren't removed by PURGE BINARY LOGS TO. This manifests as the PURGE command returning without error but the log is not removed, and expire_logs_days is being ignored (or maybe is being actioned but the logs are removed). Example:
We haven't made any manual changes to the binlog index file or anything like that. Also, so far we've only noted this behaviour on the node designated as the master by maxscale. No errors are recorded in the database log. Thanks |
| Comments |
| Comment by Justin Bennett [ 2022-06-17 ] | |||
|
We originally saw this issue on 10.5.12 but also appears in 10.5.15. | |||
| Comment by Justin Bennett [ 2022-06-17 ] | |||
|
See attached straces for 2 nodes in the same cluster, one from a node where PURGE BINARY LOGS TO works, and one where it doesn't work. | |||
| Comment by markus makela [ 2022-07-05 ] | |||
|
This is expected behavior, SHOW BINARY LOGS is a read-only statement and it's routed to any server capable of processing reads:
If you want to force the query to be executed on the master, you can do it inside a transaction. |