Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5812

Conflicting documentation for snapshot.mode property in MongoDB connector v2.0

XMLWordPrintable

      https://debezium.io/documentation/reference/stable/connectors/mongodb.html#mongodb-property-snapshot-mode
      says:

      The default is initial, and specifies that the connector reads a snapshot when either no offset is found or if the change stream no longer contains the previous offset.

      but, then in: https://debezium.io/documentation/reference/stable/connectors/mongodb.html#debezium-mongodb-connector-is-stopped-for-a-long-interval in the Note section it says:

      If the connector remains stopped for long enough, MongoDB might purge older oplog files and the connector’s last position may be lost. In this case, when the connector configured with initial snapshot mode (the default) is finally restarted, the MongoDB server will no longer have the starting point and the connector will fail with an error.{}

      So, not clear - when previous offset is not available, the connector will start a snapshot process or will fail with an error?

            broldan@redhat.com Robert Roldan
            alon_rh Alon Prantsipal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: