[SERVER-3696] missing uptime field for self in replSetGetStatus Created: 26/Aug/11  Updated: 11/Jul/16  Resolved: 22/Sep/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.0.0-rc0
Fix Version/s: 2.1.0

Type: Improvement Priority: Trivial - P5
Reporter: Grégoire Seux Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: replication
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

all


Participants:

 Description   

rs.status() does not display information uptime of the server where it run.

For example :
PRIMARY>rs.status()
{
"set" : "shard4",
"date" : ISODate("2011-08-26T13:19:39Z"),
"myState" : 1,
"syncingTo" : "10.121.4.13:27024",
"members" : [
{
"_id" : 0,
"name" : "10.120.4.13:27024",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"optime" :

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

,
"optimeDate" : ISODate("2011-08-26T13:18:19Z"),
"self" : true
},
{
"_id" : 1,
"name" : "10.121.4.13:27024",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 79,
"optime" :

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

,
"optimeDate" : ISODate("2011-08-26T13:18:19Z"),
"lastHeartbeat" : ISODate("2011-08-26T13:19:37Z"),
"pingMs" : 70
},
{
"_id" : 3,
"name" : "10.120.4.14:29024",
"health" : 1,
"state" : 7,
"stateStr" : "ARBITER",
"uptime" : 79,
"optime" :

{ "t" : 0, "i" : 0 }

,
"optimeDate" : ISODate("1970-01-01T00:00:00Z"),
"lastHeartbeat" : ISODate("2011-08-26T13:19:38Z"),
"pingMs" : 0
}
],
"ok" : 1



 Comments   
Comment by auto [ 22/Sep/11 ]

Author:

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

Message: move start time to cmdline SERVER-3696
Branch: master
https://github.com/mongodb/mongo/commit/295dd2221580dc3fe8ca451cb1192d660948a3b8

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