babak
unread,Mar 15, 2011, 11:47:21 AM3/15/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I'm trying out a rolling repair in a replica set with 3 members. After
repairing the master I check rs.status and got the following answer:
rs.status()
{
"set" : "foo",
"date" : ISODate("2011-03-15T15:39:27Z"),
"myState" : 1,
"members" : [
{
"_id" : 0,
"name" : "localhost:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"optime" : {
"t" : 1300186691000,
"i" : 5458
},
"optimeDate" : ISODate("2011-03-15T10:58:11Z"),
"self" : true
},
{
"_id" : 1,
"name" : "localhost:27018",
"health" : 1,
"state" : 9,
"stateStr" : "ROLLBACK",
"uptime" : 325,
"optime" : {
"t" : 1300203235000,
"i" : 3
},
"optimeDate" : ISODate("2011-03-15T15:33:55Z"),
"lastHeartbeat" : ISODate("2011-03-15T15:39:26Z"),
"errmsg" : "rollback 2 error findcommonpoint waiting a while before
trying again"
},
{
"_id" : 2,
"name" : "localhost:27019",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 329,
"optime" : {
"t" : 1300186691000,
"i" : 5458
},
"optimeDate" : ISODate("2011-03-15T10:58:11Z"),
"lastHeartbeat" : ISODate("2011-03-15T15:39:26Z")
}
],
"ok" : 1
}
localhost:27018 is the former master. Can't find anything about state
9 in the documentation and the replica seems to be stuck in that
state, any ideas why?
I'm running version 1.8.