-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
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?
Since the problem described in this issue should be resolved in a recent advisory, it has been closed.
For information on the advisory (Red Hat build of Debezium 2.1.4 release), and where to find the updated files, follow the link below.
If the solution does not work for you, open a new bug report.
https://access.redhat.com/errata/RHEA-2023:1814