[SERVER-2568] Unreachable replica set member has a state of 1 Created: 16/Feb/11  Updated: 12/Jul/16  Resolved: 01/Apr/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 1.9.0

Type: Bug Priority: Minor - P4
Reporter: Kyle Banker Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

When a replica set member is unreachable, the status reported is this:

{
"_id" : 0,
"name" : "localhost:30000",
"health" : 0,
"state" : 1,
"stateStr" : "(not reachable/healthy)",
"uptime" : 0,
"optime" :

{ "t" : 1297877539000, "i" : 1 }

,
"optimeDate" : ISODate("2011-02-16T17:32:19Z"),
"lastHeartbeat" : ISODate("2011-02-16T17:37:07Z"),
"errmsg" : "socket exception"
}

If the member is unreachable, should the state still be reported as 1? Shouldn't the state be 6 (unknown)?



 Comments   
Comment by Kristina Chodorow (Inactive) [ 01/Apr/11 ]

Actually changes to state 8 (down).

Comment by auto [ 01/Apr/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: change member state when member goes down SERVER-2568
Branch: master
https://github.com/mongodb/mongo/commit/ab4bb9321450650f0cb06a8a91b048ee5d43a6d9

Generated at Thu Feb 08 03:00:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.