[SERVER-7533] Expose method to the mongo shell to get the status of a ReplSetMonitor instance Created: 01/Nov/12  Updated: 11/Jul/16  Resolved: 18/Sep/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.3.1
Fix Version/s: 2.5.3

Type: New Feature Priority: Major - P3
Reporter: Randolph Tan Assignee: Matt Dannenberg
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-10429 read_pref_cmd.js failed on multiple v... Closed
is depended on by SERVER-10383 read_pref_cmd.js failed on Windows 64... Closed
Participants:

 Description   

The idea is to write a hook in sm/v8 so it can call something to the
equivalent of

ReplSetMonitor::get(setName)->appendInfo(builder);

This can be helpful especially in tests so we can make sure that the mongo shell's instance of the monitor is in the state we want it to be before proceeding.



 Comments   
Comment by auto [ 18/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-7533 added an _awaitRSHostViaRSMonitor method based on _replMonitorStats

updated jstests/sharding/read_pref_cmd.js to use this new method
Branch: master
https://github.com/mongodb/mongo/commit/de25d5b966fae434669df47b41c076445d2303f6

Comment by auto [ 18/Sep/13 ]

Author:

{u'username': u'dannenberg', u'name': u'matt dannenberg', u'email': u'matt.dannenberg@10gen.com'}

Message: SERVER-7533 add _replMonitorStats() to get status from a ReplSetMonitor
Branch: master
https://github.com/mongodb/mongo/commit/c69859f9e723f7c7930729930b688d392157a596

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