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

Using mongod to shutdown a running server

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Test fixture implementations that start and stop a mongodb instance would be much simpler, if mongod could be used to shut down a running server, e.g. with: mongod --port 12345 --shutdown

      Code to set up and tear down a mongodb instance could then be purely static. Currently, an active connection is used to shut down the DB with the "shutdown" command. This means that this approach i.e. cannot be used in @AfterClass annotated methods in JUnit tests, because those methods must be static.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ractive Jean-Pierre Bergamin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: