Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-991

Out-of-date note about "not master" error

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.1
    • Affects Version/s: None
    • Component/s: Docs
    • None

      In MongoClient's docstring:

      If connecting directly to a secondary then a read preference mode other than PRIMARY is required - otherwise all queries will throw AutoReconnect “not master”.

      This is no longer the case, we obey the Server Selection Spec:

      Topology type Single: clients MUST always set the slaveOK wire protocol flag on reads to ensure that any server type can handle the request.

      https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#topology-type-single

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: