Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-23287

Cleanup replSetGetStatus output/code (field names)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.4
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 12 (04/01/16)

      Description

      • rename "OpTime" field to "opTimes"
      • add more optimes into field
        • durable
        • applied
      • use helper to append OpTime to output
      • fix tests

      > rs.status()
      {
      	"set" : "test",
      	"date" : ISODate("2016-03-22T15:34:03.033Z"),
      	"myState" : 1,
      	"term" : NumberLong(3),
      	"heartbeatIntervalMillis" : NumberLong(2000),
      	"OpTimes" : {
      		"lastCommittedOpTime" : {
      			"ts" : Timestamp(1458660832, 1),
      			"t" : NumberLong(3)
      		}},
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "tart.local:27017",
      			"health" : 1,
      			"state" : 1,
      			"stateStr" : "PRIMARY",
      			"uptime" : 14,
      			"optime" : {
      				"ts" : Timestamp(1458660832, 1),
      				"t" : NumberLong(3)
      			},
      			"optimeDate" : ISODate("2016-03-22T15:33:52Z"),
      			"infoMessage" : "could not find member to sync from",
      			"electionTime" : Timestamp(1458660831, 1),
      			"electionDate" : ISODate("2016-03-22T15:33:51Z"),
      			"configVersion" : 1,
      			"self" : true
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scotthernandez Scott Hernandez
              Reporter:
              scotthernandez Scott Hernandez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: