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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.7
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: