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

Connection to Secondary Returns True for is_primary

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.2.2
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Connecting to a secondary and querying the is_primary parameter returns True for a secondary

      Evidence:

      primary = <type 'tuple'>: (u'ussd-prd-mgdb03.', 27017)
      client = MongoClient(host=['ussd-prd-mgdb01:27017'], document_class=dict, tz_aware=False, connect=True, replicaset='redacted')
      is_primary = True

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            rsuarez@illumina.com Robert Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: