[CDRIVER-1564] "PossiblePrimary" server is candidate for primary reads Created: 26/Sep/16  Updated: 19/Oct/16  Resolved: 12/Oct/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.2.0
Fix Version/s: 1.5.0

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

 Description   

According to Server Selection, PossiblePrimary servers are effectively Unknown, they shouldn't be candidates for selection. But this case statement appears to make them candidates for primary reads:

https://github.com/mongodb/mongo-c-driver/blob/a4bcfffa9c7ffa2e541a3351ec26cfad417cbdcf/src/mongoc/mongoc-topology-description.c#L292-L292

May also need a new Server Selection YAML test to catch this bug in all drivers.



 Comments   
Comment by Githook User [ 12/Oct/16 ]

Author:

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

Message: CDRIVER-1564 never use PossiblePrimary for query
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5a46ba9a2d991c127830665c935835cf215bbd52

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