[KAFKA-55] publish.changed.documents.only=true still returns full change stream document Created: 19/Aug/19  Updated: 28/Oct/23  Resolved: 20/Aug/19

Status: Closed
Project: Kafka Connector
Component/s: None
Affects Version/s: 0.2
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Manivannan Ponnusamy Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As per the documentation, publish.changed.documents.only=true property allows users to only publish the actual documents after inserts, replaces or updates.

But after setting this property to true also I am seeing the below fields in the output.

"_id":

{ "_data": "825D5A10BE000000012B022C0100296E5A1004F921F092F2D34BBDAF3B274E9CA70CDF46645F696400645D5A10BEE3CFEA2BABAC124E0004" }

,
"operationType": "insert",
"clusterTime": {
"$timestamp":

{ "t": 1566183614, "i": 1 }

}

 

Am I missing something here? My requirement is I want only the actual document to be sent to the Kafka topic.



 Comments   
Comment by Manivannan Ponnusamy [ 20/Aug/19 ]

This is working now, Thanks for updating the documentation.

This issue can be closed now.

Comment by Ross Lawley [ 19/Aug/19 ]

Hi pmanivannan89@gmail.com,

Thank you for the ticket. Apologies, it looks like the example wasn't updated correctly and it should be: publish.full.document.only=true

That should fix it.

Ross

Comment by Githook User [ 19/Aug/19 ]

Author:

{'username': 'rozza', 'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley'}

Message: Docs: Fix source documentation example

Updated the `publish.full.document.only` documentation and
fixed variable name in the example.

KAFKA-55
Branch: master
https://github.com/mongodb/mongo-kafka/commit/bf47487c743d5e05e36642ec80cacaae11393ef9

Generated at Thu Feb 08 09:05:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.