[SERVER-62946] Use failpoints to exercise audit log rotation failure on startup Created: 24/Jan/22 Updated: 29/Oct/23 Resolved: 29/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.2, 6.0.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Adam Rayner | Assignee: | Adam Rayner |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Enterprise RHEL 8.1 PPC64LE, Enterprise macOS |
||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Backport Requested: |
v5.3
|
||||||||
| Sprint: | Security 2022-03-21, Security 2022-04-04 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 152 | ||||||||
| Description |
|
Currently src/mongo/db/modules/enterprise/jstests/audit/log_rotate_startup.js consistently fails on Enterprise RHEL 8.1 PPC64LE and **Enterprise macOS , because the javascript test runners use GMT-5 (local timezone) on these variants when generating test file names for causing collisions with rotating audit log files, instead of the GMT-0 used by all other tested variants. The test consistently fails because mongod uses GMT-0 when it rotates files, thus for these two variants, there is never a collision, the server starts normally and the test fails. To correct this failing test and prevent further false-negatives we can use failpoints to test audit log rotation failing at various points in the process instead of relying on the variable external environment. |
| Comments |
| Comment by Githook User [ 07/Apr/22 ] |
|
Author: {'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}Message: |
| Comment by Githook User [ 07/Apr/22 ] |
|
Author: {'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}Message: |
| Comment by Githook User [ 29/Mar/22 ] |
|
Author: {'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}Message: |
| Comment by Githook User [ 29/Mar/22 ] |
|
Author: {'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}Message: |