[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: |
|
||||
| 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: |
| Comment by Githook User [ 28/Sep/21 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |
| Comment by Githook User [ 22/Sep/21 ] |
|
Author: {'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}Message: |