Unable to connect to secondary replicaSet member

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.6.2
    • Component/s: None
    • Environment:
      Ubuntu 18.04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We just updated the Mongo driver to 3.6.2 and we are not able to connect with readPreference=secondary,

       

      1. We tried to change readPreference to primary that worked fine
      2. We tried to downgrade package to 3.5.7 that worked fine
      3. 3.6.2 not able to connect with same connection string which is working fine in 3.5.7
      4. Below is my connection string
        • mongodb://username:password@mongodb-1.com:port,mongodb-2.com:port,mongodb-3.com:port/dev?replicaSet=rs1&readPreference=secondary&retrywrites=false

            Assignee:
            Matt Broadstone
            Reporter:
            Arjun Vedak
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: