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

Client sends incorrect read preference to standalones

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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

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

              Created:
              Updated:
              Resolved: