Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7123

Report readConcernMajorityOpTime in ReplSetGetStatus

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • Server

    Description

      SERVER-22445 adds readConcernMajorityOpTime to ReplSetGetStatus. This OpTime is only displayed when readConcern: Majority is enabled. This ticket makes a new subsection, OpTimes, in the non-member section of ReplSetGetStatus. This refers to the OpTime used for readConcern: Majority calls, (the committed snapshot OpTime) that exists on the reporting node.

      As an example:

      {
      	"set" : "repl",
      	"date" : ISODate("2016-02-09T15:59:14.296Z"),
      	"myState" : 1,
      	"term" : NumberLong(23),
      	"heartbeatIntervalMillis" : NumberLong(2000),
      	"OpTimes" : {
      		"lastCommittedOpTime" : {
      			"ts" : Timestamp(1455033548, 1),
      			"t" : NumberLong(23)
      		},
      		"readConcernMajorityOpTime" : {
      			"ts" : Timestamp(1455033548, 1),
      			"t" : NumberLong(23)
      		}
      	},
      	"members" : [
      		{
      			"_id" : 0,
      			"name" : "eshamaharishi-X9DAi:33000",
      			"health" : 1,
      			"state" : 1,
      			"stateStr" : "PRIMARY",
      			"uptime" : 7,
      			"optime" : {
      				"ts" : Timestamp(1455033548, 1),
      				"t" : NumberLong(23)
      			},
      			"optimeDate" : ISODate("2016-02-09T15:59:08Z"),
      			"infoMessage" : "could not find member to sync from",
      			"electionTime" : Timestamp(1455033547, 1),
      			"electionDate" : ISODate("2016-02-09T15:59:07Z"),
      			"configVersion" : 1,
      			"self" : true
      		}
      	],
      	"ok" : 1
      }
      

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 1 week, 1 day ago