Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-68440

In server selection, tags are deleted from the ReadPreference if minOpTime is specified and all servers are stale

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Sharding NYC
    • ALL
    • 2

      If a minOpTime is specified on the read preference and no server fits that criteria then the tags will be removed from the targeting request: https://github.com/mongodb/mongo/blob/6f7dae919422dcd7f4892c10ff20cdc721ad00e6/src/mongo/client/sdam/server_selector.cpp#L76

      minOpTime is optionally enforced, but the tags should be preserved to be possibly used in the switch statement that follows.

            Assignee:
            kruti.shah@mongodb.com Kruti Shah
            Reporter:
            lamont.nelson@mongodb.com Lamont Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: