Skip to content

Commit 42de190

Browse files
authored
Merge pull request #86 from DBirtolo-mdb/DOCSP-27072
DOCSP-27072: Added tombstone.on.delete setting.
2 parents 86024d6 + 617f9af commit 42de190

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

source/source-connector/configuration-properties/change-stream.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Settings
118118
contains the most current version of the updated document. To
119119
learn more about the ``fullDocument`` field, see the :rapid:`Server
120120
manual page on update events </reference/change-events/update/>`.
121+
121122
| When set to ``true``, the connector overrides the
122123
``change.stream.full.document`` setting and sets it to
123124
``updateLookup`` so that the ``fullDocument`` field contains
@@ -126,6 +127,18 @@ Settings
126127
| **Default**: ``false``
127128
| **Accepted Values**: ``true`` or ``false``
128129

130+
* - | **publish.full.document.only.tombstones.on.delete**
131+
- | **Type:** boolean
132+
|
133+
| **Description:**
134+
| Whether to return tombstone events when documents are deleted.
135+
Tombstone events contain the keys of deleted documents with
136+
``null`` values. This setting applies only when
137+
``publish.full.document.only`` is ``true``.
138+
139+
| **Default**: ``false``
140+
| **Accepted Values**: ``true`` or ``false``
141+
129142
* - | **collation**
130143
- | **Type:** string
131144
|

source/whats-new.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ What's New in 1.9
4242
operation in the change stream event document.
4343
- Improved :ref:`schema inference <source-infer-a-schema>` for nested
4444
documents contained in arrays.
45+
- Introduced the ``publish.full.document.only.tombstones.on.delete`` setting
46+
that configures the connector to send tombstone events when documents
47+
are deleted. This setting only applies when ``publish.full.document.only``
48+
is ``true``.
4549
- Added MongoDB server exception information to dead letter queue messages.
4650

4751
.. _kafka-connector-whats-new-1.8.1:

0 commit comments

Comments
 (0)