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

Single member replica set will not shutdown

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.2
    • Affects Version/s: None
    • Component/s: Admin, Replication
    • None
    • Environment:
      Linux, MongoDB 2.4.5

      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
      

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

              Created:
              Updated:
              Resolved: