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

Client sends incorrect read preference to standalones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 4.0
    • None
    • None

    Description

      In test/mockupdb/test_op_msg_read_preference.py it states "For single mongod we send primaryPreferred instead of primary." and then replaces ReadPreference.Primary with ReadPreference.PrimaryPreferred. However, this is not true for command operations and it causes a test failure.

      For more background see this comment thread from PYTHON-2773 (fix Mockupdb test failures): https://github.com/mongodb/mongo-python-driver/pull/796#discussion_r751472738

      Attachments

        Issue Links

          Activity

            People

              shane.harvey@mongodb.com Shane Harvey
              julius.park@mongodb.com Julius Park
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: