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

Read preference should not be sent to mongos for aggregations with output stages

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.2
    • Affects Version/s: 1.3.0
    • Component/s: None
    • Labels:
      None

      Our aggregation code unconditionally passes down the collection's read preference to the operations layer. This is fine for replica sets because we use the write selector for aggregations with output stages ($out/$merge) but not for sharded clusters because the lower level will pass the read preference to the mongos.

      I have verified that the a $out with read preference secondary does not work as expected against a sharded cluster and the output collection is not created.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: