[CDRIVER-424] Read Preference node selection with tags is broken Created: 18/Sep/14  Updated: 19/Oct/16  Resolved: 18/Sep/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.0.0
Fix Version/s: 1.0.2

Type: Bug Priority: Critical - P2
Reporter: Tyler Brock Assignee: Tyler Brock
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Issue Links:
Depends

 Description   

Node selection with tags is broken in the C driver for two reasons:

  • Node instances within a cluster do not have tags stored on them when they are tagged in the replica set configuration.
  • Node selection assumes a single tag set rather than array of tag sets.


 Comments   
Comment by Githook User [ 19/Sep/14 ]

Author:

{u'username': u'TylerBrock', u'name': u'Tyler Brock', u'email': u'tyler.brock@gmail.com'}

Message: CDRIVER-424 filter out non-matching nodes before those that are far
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/e57189e839a68ea0db2719bba52ffc680c3d4cd7

Comment by Tyler Brock [ 18/Sep/14 ]

Code review: https://github.com/mongodb/mongo-c-driver/pull/75

Comment by Tyler Brock [ 18/Sep/14 ]

Patch appender is not working so these were the commits:

63981c01234517dac9c9e863a584a959a5d904d4 CDRIVER-424 make conditional explicit
dfd158bd89884c544546ca763f21ee88cdf84b7c CDRIVER-424 C89 is a thing still -> because Windows
326a7c636e0612169e5b5ab6548e47bfa16d9a90 CDRIVER-424 Fix node selection with read preference tags

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