shutdown.js is failing with a "Target already exists during log rotation." error when nodes start.
This is likely a result of https://jira.mongodb.org/browse/SERVER-61699 wherein we have the server fail to start if the log file cannot be rotated.
The tests in question do not sleep between starts / restarts, thus filename collisions with the rotated log file are possible.
Increasing a sleep to 2 seconds between start/stop commands should address this.
[js_test:shutdown] s21273| 2022-01-05T13:04:24.807+00:00 D1 ASSERT 23074 [main] "User assertion","attr":{"error":"FileRenameFailed: target=/data/db/job5/mongorunner/audit-logs/mongodb-eed21d46385b412690bddd83ca8f3feb-audit.log.2022-01-05T13-04-24, file=/data/db/job5/mongorunner/audit-logs/mongodb-eed21d46385b412690bddd83ca8f3feb-audit.log","file":"src/mongo/db/modules/enterprise/src/audit/audit_manager.cpp","line":299} |