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

Add tests for startup and shutdown

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • Fully Compatible
    • Programmability 2024-09-30, Programmability 2024-10-14

      Startup and shutdown is an area without much direct unit test coverage. We should add at least the following tests:

      • mongod startup followed immediately by shutdown with no command line arguments
      • The shutdownAtStartup failpoint present in mongod makes this easy
      • mongos startup followed immediately by shutdown with no command line arguments
      • A failpoint similar to shutdownAtStartup can be added in the mongos startup
      • mongod startup followed immediately by shutdown with --shardsvr
      • mongod startup followed immediately by shutdown with --configsvr
      • mongod startup followed immediately by shutdown with --maintenanceMode=standalone

            Assignee:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Reporter:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: