[SERVER-6972] C++ driver should use isMaster, not replSetGetStatus, to monitor health of a replica set Created: 07/Sep/12  Updated: 11/Jul/16  Resolved: 02/Apr/13

Status: Closed
Project: Core Server
Component/s: Internal Client, Security, Sharding
Affects Version/s: 2.0.7, 2.2.0
Fix Version/s: 2.5.0

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DOCS-1836 Document wire version in isMaster Closed
Duplicate
is duplicated by SERVER-9874 Potential deadlock when running connP... Closed
Related
related to SERVER-9021 Make sure that at most one thread at ... Closed
related to SERVER-5392 Consider allowing only one thread to ... Closed
is related to SERVER-5058 mongos should update config seed base... Closed
Operating System: ALL
Participants:

 Description   

It is a part of the driver spec that all drivers should use isMaster for monitoring the health of a replica set and for node discovery. The C++ driver is the only driver that uses replSetGetStatus. This causes several problems, the most major of which is that replSetGetStatus requires auth to run, so it is currently completely impossible to use the C++ driver on an authenticated cluster. Another potential problem is that replSetGetStatus is a heavier command that may take locks and puts more load on the server than isMaster does. Mongos currently isn't using any information from replSetGetStatus that isn't available in isMaster, so we should be able to use isMaster instead without losing any functionality.



 Comments   
Comment by auto [ 02/Apr/13 ]

Author:

{u'date': u'2013-04-02T15:04:52Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-6972 Fix test compilation
Branch: master
https://github.com/mongodb/mongo/commit/e50383635fe7ff08ff420d2659ee9faca74b641f

Comment by auto [ 02/Apr/13 ]

Author:

{u'date': u'2013-03-15T18:46:45Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-6972 SERVER-6495 Use isMaster instead of replSetGetStatus for monitoring the health of a replica set
Branch: master
https://github.com/mongodb/mongo/commit/2d0f6cc207ac4574ead4bb4728bfef1e22229b67

Comment by auto [ 08/Feb/13 ]

Author:

{u'date': u'2013-02-08T20:22:22Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: Skip jstests/sharding/read_pref.js when running test with auth SERVER-6972 SERVER-4237
Branch: master
https://github.com/mongodb/mongo/commit/288df8991ba54a02e034b7a45068acf1972071c9

Comment by auto [ 24/Jan/13 ]

Author:

{u'date': u'2013-01-24T20:20:04Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-4237 SERVER-6972 Skip jstests/sharding/read_pref_cmd.js when run with auth
Branch: master
https://github.com/mongodb/mongo/commit/4621e405d98606b869421a4bdc7a8aed63b6616e

Comment by auto [ 07/Nov/12 ]

Author:

{u'date': u'2012-11-07T01:48:16Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-4237 SERVER-6972 Skip gle_with_conf_servers when running tests with auth
Branch: master
https://github.com/mongodb/mongo/commit/57f1be7c72d00eb78c3470f46bfcb9c0e7c0af20

Comment by auto [ 10/Sep/12 ]

Author:

{u'date': u'2012-09-07T13:23:07-07:00', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-6972 SERVER-4237 Skip sharding/read_pref_rs_client.js when running with auth
Branch: master
https://github.com/mongodb/mongo/commit/bbc53eca04200a1c16d8e202886e4ffe0f595759

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