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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Source
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: