[SERVER-7111] DBClientReplicaSet::connect should not assert if primary is down but secondaries are available Created: 23/Sep/12  Updated: 11/Jul/16  Resolved: 26/Sep/12

Status: Closed
Project: Core Server
Component/s: Internal Client, Sharding
Affects Version/s: 2.2.0
Fix Version/s: 2.2.2, 2.3.0

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

Attachments: Text File client.log     Text File client.log     Text File mongos.log     Text File mongos.log     File repl_down.js    
Issue Links:
Related
is related to SERVER-7246 Mongos cannot do slaveOk queries when... Closed
Operating System: ALL
Participants:

 Description   

Otherwise, client won't be able to do secondary reads even if secondaries are available.



 Comments   
Comment by auto [ 06/Nov/12 ]

Author:

{u'date': u'2012-09-24T17:58:00Z', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-7111 DBClientReplicaSet::connect should not assert if primary is down but secondaries are available
Branch: v2.2
https://github.com/mongodb/mongo/commit/67d9b0daa4f444661cf846d07f6a97dfbd03e012

Comment by Benedikt Waldvogel [ 03/Oct/12 ]

Thanks. Isn't closing SERVER-7075 as a duplicate of this bug confusing, misleading and wrong then?

Comment by Randolph Tan [ 03/Oct/12 ]

Hi,

This fix is just for the C++ driver. The bug you encountered is slightly different so I created a new ticket for you - SERVER-7246.

Comment by Benedikt Waldvogel [ 03/Oct/12 ]

Using the latest nightly development release also fails for me. See the updated logs.

Comment by Randolph Tan [ 03/Oct/12 ]

Hi,

This fix is not yet included in the 2.2.x release (but is marked for backport). This fix is currently available only in the nightly development release.

Comment by Benedikt Waldvogel [ 03/Oct/12 ]

My test case (see SERVER-7075) still fails with the latest nightly build.
See the attached log files.

Comment by auto [ 26/Sep/12 ]

Author:

{u'date': u'2012-09-24T10:58:00-07:00', u'email': u'randolph@10gen.com', u'name': u'Randolph Tan'}

Message: SERVER-7111 DBClientReplicaSet::connect should not assert if primary is down but secondaries are available
Branch: master
https://github.com/mongodb/mongo/commit/1af03cddde9fb4c1207b982d42add6fd9235fc12

Comment by Daniel Pasette (Inactive) [ 23/Sep/12 ]

Test case attached. Note that only fails if the primary and a secondary are stopped. If the 2 secondaries are stopped, test will pass.

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