Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1447

Logic bug in tag_sets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      C Driver 2016 sprint 6

      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.

        Attachments

          Activity

            People

            Assignee:
            jesse A. Jesse Jiryu Davis
            Reporter:
            jesse A. Jesse Jiryu Davis
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: