Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
None
-
None
-
ALL
Description
When I am trying to add a node to the cluster we are getting the below error. -
Hotels:PRIMARY> rs.add("hotelsdrmongo01:27017")
|
assert failed : error: local.system.replset has unexpected contents
|
Error: assert failed : error: local.system.replset has unexpected contents
|
at Error (<anonymous>)
|
at doassert (src/mongo/shell/assert.js:11:14)
|
at assert (src/mongo/shell/assert.js:20:5)
|
at Function.rs.add (src/mongo/shell/utils.js:980:5)
|
at (shell):1:4
|
2017-03-27T17:23:11.546+0530 E QUERY Error: assert failed : error: local.system.replset has unexpected contents
|
at Error (<anonymous>)
|
at doassert (src/mongo/shell/assert.js:11:14)
|
at assert (src/mongo/shell/assert.js:20:5)
|
at Function.rs.add (src/mongo/shell/utils.js:980:5)
|
at (shell):1:4 at src/mongo/shell/assert.js:13
|
mongo version— 3.0.8
Hotels:PRIMARY> rs.status()
|
{
|
"set" : "Hotels",
|
"date" : ISODate("2017-03-27T12:22:48.199Z"),
|
"myState" : 1,
|
"members" : [
|
{
|
"_id" : 3,
|
"name" : "p.ip.ip.ip:27017",
|
"health" : 1,
|
"state" : 1,
|
"stateStr" : "PRIMARY",
|
"uptime" : 2345841,
|
"optime" : Timestamp(1490617345, 1),
|
"optimeDate" : ISODate("2017-03-27T12:22:25Z"),
|
"electionTime" : Timestamp(1488271545, 1),
|
"electionDate" : ISODate("2017-02-28T08:45:45Z"),
|
"configVersion" : 27,
|
"self" : true
|
},
|
{
|
"_id" : 4,
|
"name" : "ip.ip.ip.ip:27017",
|
"health" : 1,
|
"state" : 2,
|
"stateStr" : "SECONDARY",
|
"uptime" : 2345716,
|
"optime" : Timestamp(1490617345, 1),
|
"optimeDate" : ISODate("2017-03-27T12:22:25Z"),
|
"lastHeartbeat" : ISODate("2017-03-27T12:22:47.609Z"),
|
"lastHeartbeatRecv" : ISODate("2017-03-27T12:22:47.607Z"),
|
"pingMs" : 0,
|
"syncingTo" : "ip.ip.ip.ip:27017",
|
"configVersion" : 27
|
},
|
{
|
"_id" : 5,
|
"name" : "celery02.prod.goibibo.com:27017",
|
"health" : 1,
|
"state" : 7,
|
"stateStr" : "ARBITER",
|
"uptime" : 144,
|
"lastHeartbeat" : ISODate("2017-03-27T12:22:47.539Z"),
|
"lastHeartbeatRecv" : ISODate("2017-03-27T12:22:47.545Z"),
|
"pingMs" : 0,
|
"configVersion" : 27
|
}
|
],
|
"ok" : 1
|
|
|
Hotels:PRIMARY> rs.conf()
|
{
|
"_id" : "Hotels",
|
"version" : 27,
|
"members" : [
|
{
|
"_id" : 3,
|
"host" : "ip.ip.ip.ip:27017",
|
"arbiterOnly" : false,
|
"buildIndexes" : true,
|
"hidden" : false,
|
"priority" : 2,
|
"tags" : {
|
|
|
},
|
"slaveDelay" : 0,
|
"votes" : 1
|
},
|
{
|
"_id" : 4,
|
"host" : "ip.ip.ip.ip:27017",
|
"arbiterOnly" : false,
|
"buildIndexes" : true,
|
"hidden" : false,
|
"priority" : 1,
|
"tags" : {
|
|
|
},
|
"slaveDelay" : 0,
|
"votes" : 1
|
},
|
{
|
"_id" : 5,
|
"host" : "ip.ip.ip.ip:27017",
|
"arbiterOnly" : true,
|
"buildIndexes" : true,
|
"hidden" : false,
|
"priority" : 1,
|
"tags" : {
|
|
|
},
|
"slaveDelay" : 0,
|
"votes" : 1
|
}
|
],
|
"settings" : {
|
"chainingAllowed" : true,
|
"heartbeatTimeoutSecs" : 10,
|
"getLastErrorModes" : {
|
|
|
},
|
"getLastErrorDefaults" : {
|
"w" : 1,
|
"wtimeout" : 0
|
}
|
}
|
}
|
Hotels:PRIMARY>
|
Attachments
Issue Links
- related to
-
SERVER-26839 Improve readWriteDatabase role coverage
-
- Closed
-