Skip to content

Conversation

jakub-nowakowski-percona

https://perconadev.atlassian.net/browse/PS-10131

When using Audit Log in memory-buffered mode (ASYNCHRONOUS or PERFORMANCE), rotating a log file could be stalled for up to 1 second because file flushing thread wasn't being signaled properly. This patch fixes that, and causes log files to be rotated immediately upon request. However, since audit log file names contain rotation timestamp with resolution of 1 second, it introduces a possibility of log files being overwritten when rotated multiple times a second. To avoid potential loss of audit log information, timestamp used in names of newly rotated log files will be appended with a sequence number, whenever a file name collision was to occur.

https://perconadev.atlassian.net/browse/PS-10131

When using Audit Log in memory-buffered mode (ASYNCHRONOUS or PERFORMANCE),
rotating a log file could be stalled for up to 1 second because file flushing
thread wasn't being signaled properly. This patch fixes that, and causes log
files to be rotated immediately upon request. However, since audit log file
names contain rotation timestamp with resolution of 1 second, it introduces
a possibility of log files being overwritten when rotated multiple times
a second. To avoid potential loss of audit log information, timestamp used in
names of newly rotated log files will be appended with a sequence number,
whenever a file name collision was to occur.
@jakub-nowakowski-percona jakub-nowakowski-percona force-pushed the PS-10131-8.4-fix-audit-log-rotation-stall branch from 99d7541 to 180e3c0 Compare September 26, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant