[DOCS-2214] Incorrect description of members.status field on replSetGetStatus reference page Created: 08/Nov/13  Updated: 11/Jan/17  Resolved: 08/Nov/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Michael Benoit Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 10 years, 14 weeks, 5 days ago

 Description   

The reference page for the replSetGetStatus command says the following about the meaning of the members.state field in the output document:

The value of state is an array of documents, each containing an integer between 0 and 10 that represents the replica state of the corresponding member.

However, in the output I'm seeing from this command, the members.state field is a single value, not an array of documents:

MongoDB shell version: 2.4.3
connecting to: localhost:27000/test
backup_test:PRIMARY> rs.status();
{
	"set" : "backup_test",
	"date" : ISODate("2013-11-08T20:00:37Z"),
	"myState" : 1,
	"members" : [
		{
			"_id" : 0,
			"name" : "localhost:27000",
			"health" : 1,
			"state" : 1,
			"stateStr" : "PRIMARY",
...etc...

Interestingly, the documentation for this field is correct in the v2.2 manual.



 Comments   
Comment by auto [ 08/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2214: replSetGetStatus fix
Branch: master
https://github.com/mongodb/docs/commit/0eb3287d0f81aa45bc560cbd290966050bb0ea7f

Comment by auto [ 08/Nov/13 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2214: replSetGetStatus fix
Branch: v2.4
https://github.com/mongodb/docs/commit/52ef82b98085544681a30ad88fabe7a92da6c6ae

Generated at Thu Feb 08 07:42:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.