Details
-
Question
-
Status: Closed
-
Minor - P4
-
Resolution: Fixed
-
None
-
None
-
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
|