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

Warn when a command is redirected to the primary and read preference is not primary

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7
    • Affects Version/s: None
    • Component/s: None
    • None

      Only a small subset of commands obey the read preference specified by the user (see the secondary_ok_commands attribute of the read_preferences module). All other commands are directed to the current primary, regardless of read preference. We should warn when this occurs.

      http://docs.python.org/2/library/exceptions.html#exceptions.UserWarning

            Assignee:
            amalia.hawkins@10gen.com Amalia Hawkins
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: