Here’s what’s happening under the hood:
MySQL default hierarchy and delete operations
When Mumara runs its routine delete operations (usually around midnight) to clear out old data based on your retention period, MySQL can temporarily place locks on the tables or rows it’s modifying. This is expected behavior and is typically short-lived—Mumara processes these deletions in batches precisely to avoid any prolonged locking.
Why you see “thousands” of errors
If you’ve set a retention period only recently (for example, 30 days) but you previously had logs spanning a much larger timeframe (e.g. 2 years), Mumara will try to delete all those older records in chunks. That can lead to multiple rapid-fire delete operations and, as a result, multiple brief deadlocks as MySQL manages concurrency. While it may look alarming in the logs, these are short spikes during the daily maintenance and typically don’t indicate a deeper issue with the database itself.
What to expect going forward
1. Short-term Deadlocks: You may still see these errors until Mumara finishes cleaning up older data.
2. Less Frequent Once Caught Up: As soon as the system has trimmed down to within your retention window, deadlocks should reduce significantly since fewer rows need to be purged each night.
3. Safe to Ignore: Deadlocks are a normal part of MySQL’s process, especially during large delete jobs, and Mumara is designed to handle them in small batches.
If you’re concerned about performance while these large deletions occur, you can check your database status to ensure no real bottlenecks are happening. Otherwise, it’s safe to allow Mumara to finish cleaning up. Once that’s done, you should see a lot fewer deadlock messages in your logs.