Invalid audit log file size when audit_log_rotations is changed during runtime

Description

Setup Percona Server 5.6 (tested on 5.6.41-84.1) with audit log plugin enabled:

Run an insert to a table and check that audit log files are created. Stop the insert at some point where there are less than the number of audit_log_rotations created

In my case, I stopped with audit.log.{01-09}.

Now run

 

 

Continue inserting to the database and notice it creates the files audit.log.{10-25} instantly:

And the file size keeps on changing:

 

Moreover, the manual states that audit_log_rotations is non-dynamic but from the above output we can see it is dynamic.

https://www.percona.com/doc/percona-server/LATEST/management/audit_log_plugin.html#audit_log_rotations

 

 

Environment

None

AFFECTED CS IDs

238933

Smart Checklist

Activity

Show:
Done

Details

Assignee

Reporter

Time tracking

4h logged

Affects versions

Priority

Smart Checklist

Created October 19, 2018 at 5:13 AM
Updated March 6, 2024 at 12:45 PM
Resolved November 27, 2018 at 10:47 AM