[CDRIVER-1447] Logic bug in tag_sets Created: 03/Aug/16  Updated: 10/Aug/16  Resolved: 04/Aug/16

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2.0
Fix Version/s: 1.4.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   

Bug in server selection when there are multiple mismatches in the tag sets. E.g., read preference tag_sets like:

[{a: "one", b: "one"}]

And two secondaries with tags:

secondary A: {a: "two", b: "two"}
secondary B: {a: "one", b: "one"}

The C Driver keeps a count of mismatched RS members as it's processing a tag set. Unfortunately, it decrements that count for each mismatched tag instead of each mismatched tag set, so it finishes with a count of zero instead of the correct count of one.



 Comments   
Comment by Githook User [ 04/Aug/16 ]

Author:

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

Message: CDRIVER-1447 logic bug with tag_sets - fixup
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/cd4c2b4f636baca5719614fe9e82ff37a336090b

Comment by Githook User [ 04/Aug/16 ]

Author:

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

Message: CDRIVER-1447 update NEWS
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/17277906e9dfe1db7d7632bdb1082b0f7b1f4932

Comment by Githook User [ 04/Aug/16 ]

Author:

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

Message: CDRIVER-1447 logic bug with tag_sets
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3bd04d8c325f239cdf0cee7bf85cafff4d0e0cb0

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