Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-484

Read preference doesn't work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • CRUD
    • None

    Description

      mongodb:
          read_preference: "secondary"
          read_preference_tags:
            - storage: "SSD"
      

      Our configuration looks like this. It works with mgo.
      We switched to mongo-go-driver and found all the queries went to the primary.
      But the driver threw exception if we intended to use a non-existed read preference tags.

      Topology:
      go client -> mongos -> a 3.2 sharded cluster

      Attachments

        Activity

          People

            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            h@bulbit.jp Hailin Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: