[SERVER-60046] Add one second delay in between runs of mongod in log_contains_header.js Created: 17/Sep/21  Updated: 29/Oct/23  Resolved: 22/Sep/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Erwin Pe Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Security 2021-10-04
Participants:
Linked BF Score: 28

 Description   

The log_contains_header.js test fails sporadically if both the first and second runs of mongod rotate the audit.log file at the same second, thereby causing the second rotation to skip renaming the audit.log file as the target file name already exists. This causes the second mongod to append log lines to the un-rotated audit.log file, instead of a blank file. When the test script looks at the audit.log file, it reads an unexpected header line, so it fails. Adding at least one-second delay in between the two runs will ensure this collision doesn't happen.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 29/Sep/21 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-60046 Add one second delay in between runs of mongod in log_contains_header.js
Branch: marksg07/server-59917
https://github.com/10gen/mongo-enterprise-modules/commit/a390ceeede2be01f35b85f1866af63a316d195d5

Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-60046 Add one second delay in between runs of mongod in log_contains_header.js
Branch: matthew.russotto/SERVER-58776
https://github.com/10gen/mongo-enterprise-modules/commit/a390ceeede2be01f35b85f1866af63a316d195d5

Comment by Githook User [ 22/Sep/21 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-60046 Add one second delay in between runs of mongod in log_contains_header.js
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/a390ceeede2be01f35b85f1866af63a316d195d5

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