This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 9b839f3fda97 chore: camel-debezium-mongodb - docs: CamelDebeziumBefore
is set with the pre-image capture modes (#28978)
9b839f3fda97 is described below
commit 9b839f3fda97723c4b1adaf53189c2e1678c2021
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 2 21:57:40 2026 +0100
chore: camel-debezium-mongodb - docs: CamelDebeziumBefore is set with the
pre-image capture modes (#28978)
The note said CamelDebeziumBefore is never available, based on the MongoDB
oplog of Debezium 0.10. Debezium now uses change streams and fills the
before
state when captureMode captures pre-images. Also point the two configuration
links to the current Debezium documentation instead of 0.10.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../apache/camel/catalog/docs/debezium-mongodb-component.adoc | 9 ++++++---
.../src/main/docs/debezium-mongodb-component.adoc | 9 ++++++---
2 files changed, 12 insertions(+), 6 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/debezium-mongodb-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/debezium-mongodb-component.adoc
index 95bbd7b3a316..dbcbbfb31b9d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/debezium-mongodb-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/debezium-mongodb-component.adoc
@@ -71,10 +71,13 @@ include::partial$component-endpoint-headers.adoc[]
// component options: END
For more information about configuration:
-https://debezium.io/documentation/reference/0.10/operations/embedded.html#engine-properties[https://debezium.io/documentation/reference/0.10/operations/embedded.html#engine-properties]
-https://debezium.io/documentation/reference/0.10/connectors/mongodb.html#connector-properties[https://debezium.io/documentation/reference/0.10/connectors/mongodb.html#connector-properties]
+https://debezium.io/documentation/reference/stable/development/engine.html#engine-properties[Debezium
engine properties]
+https://debezium.io/documentation/reference/stable/connectors/mongodb.html#mongodb-connector-properties[Debezium
MongoDB connector properties]
-*Note*: Debezium Mongodb uses MongoDB’s oplog to populate the CDC events, the
update events in MongoDB’s oplog don’t have the before or after states of the
changed document, so there’s no way for the Debezium connector to provide this
information, therefore header key `CamelDebeziumBefore` is not available in
this component.
+*Note*: The `CamelDebeziumBefore` header holds the document before the change
only when the connector captures
+pre-images, that is with `captureMode` set to `change_streams_with_pre_image`
or
+`change_streams_update_full_with_pre_image` (MongoDB 6.0 or later, with
pre-images enabled on the collection). With the
+other capture modes, such as the default `change_streams_update_full`, the
header is `null`.
== Usage
diff --git
a/components/camel-debezium/camel-debezium-mongodb/src/main/docs/debezium-mongodb-component.adoc
b/components/camel-debezium/camel-debezium-mongodb/src/main/docs/debezium-mongodb-component.adoc
index 95bbd7b3a316..dbcbbfb31b9d 100644
---
a/components/camel-debezium/camel-debezium-mongodb/src/main/docs/debezium-mongodb-component.adoc
+++
b/components/camel-debezium/camel-debezium-mongodb/src/main/docs/debezium-mongodb-component.adoc
@@ -71,10 +71,13 @@ include::partial$component-endpoint-headers.adoc[]
// component options: END
For more information about configuration:
-https://debezium.io/documentation/reference/0.10/operations/embedded.html#engine-properties[https://debezium.io/documentation/reference/0.10/operations/embedded.html#engine-properties]
-https://debezium.io/documentation/reference/0.10/connectors/mongodb.html#connector-properties[https://debezium.io/documentation/reference/0.10/connectors/mongodb.html#connector-properties]
+https://debezium.io/documentation/reference/stable/development/engine.html#engine-properties[Debezium
engine properties]
+https://debezium.io/documentation/reference/stable/connectors/mongodb.html#mongodb-connector-properties[Debezium
MongoDB connector properties]
-*Note*: Debezium Mongodb uses MongoDB’s oplog to populate the CDC events, the
update events in MongoDB’s oplog don’t have the before or after states of the
changed document, so there’s no way for the Debezium connector to provide this
information, therefore header key `CamelDebeziumBefore` is not available in
this component.
+*Note*: The `CamelDebeziumBefore` header holds the document before the change
only when the connector captures
+pre-images, that is with `captureMode` set to `change_streams_with_pre_image`
or
+`change_streams_update_full_with_pre_image` (MongoDB 6.0 or later, with
pre-images enabled on the collection). With the
+other capture modes, such as the default `change_streams_update_full`, the
header is `null`.
== Usage