We had a couple of cases where clients reported that the MySQL error log was flooded with the below note:

One of my colleagues Sami Ahlroos found that whenever we trigger a truncate on any table, the function is stopping the purge and then resuming it once it has found it stopped.

Below are the steps to reproduce.

  1. Log verbosity needs to be set to 3 (the default value)

     2. Create a test table and run a truncate multiple times

   3. Check the error logs

The bug was reported to MySQL and confirmed as well.

Along with MySQL version 5.7.40, similar behavior is also noticed in Percona Server for MySQL 5.7.40 and Percona XtraDB Cluster 5.7.40. This behavior was not noticed in the 8.0 version.

NOTE – There is no workaround to get through it as of now. We can only avoid this by setting log_error_verbosity to 2, so it discards notes in the error log. So if you are doing a lot of truncates, this can be a workaround not to add those notes in the error logs.

References:

https://bugs.mysql.com/bug.php?id=109552 

https://jira.percona.com/browse/PS-8575

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments