[CDRIVER-1020] Secondary reads directed to hidden members Created: 21/Nov/15  Updated: 08/Dec/15  Resolved: 02/Dec/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2.0
Fix Version/s: 1.3.0-rc0, 1.2.2

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-1002 Update SDAM tests to latest and fix ... Closed

 Description   

See DRIVERS-267: the C Driver doesn't check the "hidden" field so a hidden secondary is considered a normal secondary available for reads.

This bug manifests rarely: the hidden node must be in the seed list, and the application must be reading with a non-primary read preference while no primary is available. (If the hidden node is not in the seed list it is never discovered. If it is in the seed list but a primary is available, the driver trusts the primary's host list, which omits the hidden member.)



 Comments   
Comment by Githook User [ 30/Nov/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1020 ignore hidden secondaries
Branch: r1.2
https://github.com/mongodb/mongo-c-driver/commit/6ca206ffd2406e8891dc0672444fdff2aecf5ed6

Comment by A. Jesse Jiryu Davis [ 23/Nov/15 ]

Code merged to master; still open awaiting backport to r1.2 branch.

Comment by Githook User [ 23/Nov/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1020 ignore hidden secondaries
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/be50225ba03226584eeea2c8865a5528178a262c

Generated at Wed Feb 07 21:11:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.