[SERVER-61699] Failure to rotate audit log on startup does not cause node startup to fail Created: 22/Nov/21  Updated: 29/Oct/23  Resolved: 22/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

Type: Bug Priority: Major - P3
Reporter: Shreyas Kalyan Assignee: Adam Rayner
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-62938 Log rotate for auditing does not work... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2021-11-29, Security 2021-12-13, Security 2021-12-27
Participants:
Linked BF Score: 39

 Description   

When a node starts up, it rotates the audit log. If there is a failure on rotate, as observed in BF-23438, we want the node to not start up. However, in BF 23438, the node ignored the 'rotate failed' error and continued starting up, which is incorrect.



 Comments   
Comment by Githook User [ 30/Dec/21 ]

Author:

{'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}

Message: SERVER-61699 Abort startup if audit log rotate fails
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/83007ce90279ac3a5bd494d8f154d74f01b39484

Comment by Githook User [ 21/Dec/21 ]

Author:

{'name': 'Adam Rayner', 'email': 'adam.rayner@gmail.com', 'username': 'adamtron'}

Message: SERVER-61699 Abort startup if audit log rotate fails
Branch: master
https://github.com/mongodb/mongo/commit/3c2effceee65bbf6bcbfcd13a4d2087d15a81aa1

Generated at Thu Feb 08 05:53:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.