Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4354

Unable to specify empty readPreferenceTags in a connection string

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      According to the docs it should be possible to specify an empty readPreferenceTags, so that we can fallback to all nodes in a replica set. But due to this check it leads to an error.

      Steps to reproduce

      Use a connection string like this

      ...&readPreferenceTags=x:y&readPreferenceTags=...

            Assignee:
            daria.pardue@mongodb.com Daria Pardue
            Reporter:
            konanmentor@gmail.com Aliaksei Tuzik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: