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

Remove topologyVersion fallback when serviceId is not present

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      The server does not yet support returning the serviceId field. For now we are using the topologyVersion.processId in its place:

              doc = <run connection handshake>
              # PYTHON-2712 will remove this topologyVersion fallback logic.
              if self.opts.load_balanced and _MOCK_SERVICE_ID:
                  process_id = doc.get('topologyVersion', {}).get('processId')
                  doc.setdefault('serviceId', process_id)
      

      We should remove this fallback logic and the internal test-only _MOCK_SERVICE_ID once the server implements the serviceId field.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: