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

Update command routing for Server Selection Spec

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Update PyMongo's database.command() method and various command helpers like aggregate(), group(), find_and_modify(), etc. to follow the new Server Selection Spec:

      https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#use-of-read-preferences-with-commands

      Database.command() already follows the spec in PyMongo 3: ignores the Database instance's read preference. Uses read preference mode PRIMARY by default, obeys whatever read preference the user explicitly configures.

      Check over the command helpers like Collection.aggregate or Database.collection_names to ensure they follow the spec as well. Commit f6a260c6 brought us close to compliance.

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

              Created:
              Updated:
              Resolved: