Test empty tag sets match servers with no tag sets

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Component/s: Server Selection
    • None
    • Needed
    • Hide

      Summary of necessary driver changes

      • Sync the new spec test: SecondaryPreferred_empty_tags

      Commits for syncing spec/prose tests

      Context for other referenced/linked tickets

      Show
      Summary of necessary driver changes Sync the new spec test: SecondaryPreferred_empty_tags Commits for syncing spec/prose tests https://github.com/mongodb/specifications/commit/99704fa8860777da1d919ef765af1e41e75f5859 Context for other referenced/linked tickets Regression test for RUST-2363 .
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-6244 Fixed 2.3.0
      CXX-3420 Works as Designed
      CSHARP-5891 Done
      GODRIVER-3821 Backlog
      JAVA-6104 Investigating
      NODE-7451 Fixed 7.2.0
      PYTHON-5730 Fixed 4.17.0
      PHPLIB-1792 Works as Designed
      RUBY-3777 Backlog
      RUST-2364 Duplicate
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } #scriptField td.willNotDo { background-color: #FF0000; /* Red color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-6244 Fixed 2.3.0 CXX-3420 Works as Designed CSHARP-5891 Done GODRIVER-3821 Backlog JAVA-6104 Investigating NODE-7451 Fixed 7.2.0 PYTHON-5730 Fixed 4.17.0 PHPLIB-1792 Works as Designed RUBY-3777 Backlog RUST-2364 Duplicate

      Summary

      Add a server selection test to ensure the empty tag set {} matches servers with no tags.

      Motivation

      Motivated by a bug in the Rust driver: RUST-2363

      Who is the affected end user?

      Users using read preferences with tag sets.

      How does this affect the end user?

      If this surfaces a bug, this could cause an incorrect server to be selected.

      How likely is it that this problem or use case will occur?

      Unsure. C and PyMongo do not appear to have this bug. But I think it is worth syncing the new spec test to check all drivers.

      If the problem does occur, what are the consequences and how severe are they?

      Unsure. This might distribute load in a different way than the user intended.

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

      Acceptance Criteria

      • Ensure a new test fails on the Rust driver prior to the fix of RUST-2363.

            Assignee:
            Kevin Albertson
            Reporter:
            Kevin Albertson
            Kevin Albertson Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: