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

Single member replica set will not shutdown

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.2
    • Component/s: Admin, Replication
    • Labels:
      None
    • Environment:
      Linux, MongoDB 2.4.5

      Description

      Single member replica set will fails to shutdown.

      Not a common production config, but there are times (esp in development where oplog is involved) where single member replica sets are useful.

      replA:PRIMARY> rs.config()
      {
      	"_id" : "replA",
      	"version" : 4,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "ec2-184-73-73-159.compute-1.amazonaws.com:27017"
      		}
      	]
      }
      replA:PRIMARY> db.shutdownServer()
      assert failed : unexpected error: "shutdownServer failed: no secondaries within 10 seconds of my optime"
      Error: Printing Stack Trace
          at printStackTrace (src/mongo/shell/utils.js:37:15)
          at doassert (src/mongo/shell/assert.js:6:5)
          at assert (src/mongo/shell/assert.js:14:5)
          at DB.shutdownServer (src/mongo/shell/db.js:346:9)
          at (shell):1:4
      Sat Aug  3 17:13:39.839 JavaScript execution failed: assert failed : unexpected error: "shutdownServer failed: no secondaries within 10 seconds of my optime" at src/mongo/shell/assert.js:L7

        Attachments

          Activity

            People

            Assignee:
            scotthernandez Scott Hernandez
            Reporter:
            thomas.boyd Thomas Boyd
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: