Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62635

Add sleep intervals between fixture start/stops in audit shutdown tests

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 5.3.0, 5.0.7
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • v5.0
    • Security 2022-01-24
    • 168

      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}
       

            Assignee:
            adam.rayner@mongodb.com Adam Rayner
            Reporter:
            adam.rayner@mongodb.com Adam Rayner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: