[MDEV-24459] FTWL failed when event scheduler ON Created: 2020-12-21 Updated: 2021-01-31 Resolved: 2021-01-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup, Events |
| Affects Version/s: | 10.5.8 |
| Fix Version/s: | 10.5.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | VAROQUI Stephane | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Hello, Investigating a backup failure here is what we found out :
SELECT * FROM information_schema.metadata_lock_info;
----------
---------- Thead Id 2 -------
-------
A workaround is to disable event scheduler before taking backup looking at the content of events we have purging process like syslog.logs is engine innodb PROCEDURE `p_purge_slow_query_log`(max_rows_deleted int unsigned) DELETE FROM global_query_review_history WHERE ts_min < current_date - INTERVAL 3 WEEK LIMIT max_rows_deleted; SELECT release_lock('p_purge_slow_query_log'); END IF; slow_query_log.global_query_review_history is innodb engine Is that expected to have MDL lock on mysql.event when the scheduler is running or is this something inside the procedure code that is blocking backups ? |