Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-387

Add support for honouring MongoDB read preference in change stream after promotion

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Source
    • None

      When change streams are in a `getMore` loop against an open cursor, they do not respect the read preference defined in the connection if there is a promotion event that invalidates the primary / secondary status of the server it is streaming from. This feature is to leverage SDAM and monitor the server's status, and if the read preference is invalidated, close the cursor noting the resume token, re-open against a read preference compatible node, and resume streaming from the resume token. This feature is key in order to keep load off the primary node.

            Assignee:
            robert.walters@mongodb.com Robert Walters
            Reporter:
            rtiernay@gmail.com Bob Tiernay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: