[DOCS-5586] Update example of output for rs.status() in MongoDB 3.0 Created: 08/Jun/15  Updated: 30/Oct/23  Resolved: 09/Jul/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Trivial - P5
Reporter: Daniel Coupal Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 8 years, 32 weeks ago

 Description   
New field for MongoDB 3.0

In MongoDB 3.0, the output of rs.status() was slightly changed to add members.configVersion

{
	...
	"members" : [
		{
			"_id" : 0,
			"name" : "localhost:28010",
			"health" : 1,
			"state" : 1,
			"stateStr" : "PRIMARY",
			"uptime" : 89,
			"optime" : Timestamp(1433802713, 1),
			"optimeDate" : ISODate("2015-06-08T22:31:53Z"),
			"electionTime" : Timestamp(1433802713, 2),
			"electionDate" : ISODate("2015-06-08T22:31:53Z"),
			"configVersion" : 1,                      <=================
			"self" : true
		}
	],
	"ok" : 1
}

This field configVersion is missing in http://docs.mongodb.org/manual/reference/command/replSetGetStatus/

fix for 2.4

At the following page: http://docs.mongodb.org/v2.4/reference/command/replSetGetStatus/, we show:

        {
            "_id" : 0,
            "name" : "m1.example.net:27017",
            "health" : 1,
            "state" : 1,
            "stateStr" : "PRIMARY",
            "uptime" : 269,
            "optime" : Timestamp(1404225575, 11),
            "optimeDate" : ISODate("2014-05-01T14:39:35Z"),
            "electionTime" : Timestamp(1404225586, 1),
            "electionDate" : ISODate("2014-05-01T14:39:46Z"),
            "self" : true
        },

There are no electionTime, neither electionData in 2.4



 Comments   
Comment by Githook User [ 09/Jul/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5586 remove electionTime and electionDate from replSetGetStatus
Branch: v2.4
https://github.com/mongodb/docs/commit/850ff11fb191c4eade59baecd6f4ebebdd0f2aa1

Comment by Githook User [ 09/Jul/15 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-5586 add memebers.configVersion field to rs.status output
Branch: master
https://github.com/mongodb/docs/commit/ec70c7f793ff24275fcd8148966188b51d8f53d1

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