Some issues with audit log testcases
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Invalid
|
Undecided
|
Unassigned | |||
5.5 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.6 |
Fix Released
|
Low
|
Laurynas Biveinis | |||
5.7 |
Fix Released
|
Low
|
Laurynas Biveinis |
Bug Description
audit_log testcases leave some log files behind, and may take log files from previous run into consideration if running with --repeat.
Also, audit_log_rotate is using async log write strategy, thus there is race condition between logging the workload and counting the log files.
To repeat, on e.g. 5.5:
$ ./mtr --debug-server --do-test=audit_log --repeat=10 --parallel=7
...
main.audit_
main.audit_log_old w5 [ pass ] 130
main.audit_
main.audit_
main.audit_log_old w5 [ fail ]
Test ended at 2015-12-10 14:27:09
CURRENT_TEST: main.audit_log_old
mysqltest: At line 8: command "move_file" failed with error 1. my_errno=2
Also, audit_log_rotate uses "test_audit.log.*" glob pattern, which accepts junk suffixes (I have seen test_audit.log.%u) instead of a numeric pattern.
tags: | added: audit ci |
description: | updated |
summary: |
- Audit log testcases do not fully clean up after themselves + Some issues with audit log testcases |
description: | updated |
description: | updated |
https:/ /github. com/percona/ percona- server/ pull/284, https:/ /github. com/percona/ percona- server/ pull/285, https:/ /github. com/percona/ percona- server/ pull/286