[KAFKA-110] DocumentIdAdder should only add an id if the field is missing. Created: 03/Jun/20  Updated: 28/Oct/23  Resolved: 23/Jun/20

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

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

Issue Links:
Documented
Documentation Changes: Needed
Documentation Changes Summary:

Added new configuration:

document.id.strategy.overwrite.existing - Allows the document id strategy will overwrite existing `_id` values
Choices: true, false
Default: true

Note: This defaults to false, which is a potential change of behaviour.


 Description   

The default _id adder shouldn't overwrite any existing _id values.



 Comments   
Comment by Githook User [ 23/Jun/20 ]

Author:

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

Message: Added `document.id.strategy.overwrite.existing` configuration.

Note: This defaults to false, which is a minor change of behaviour.

KAFKA-110
Branch: master
https://github.com/mongodb/mongo-kafka/commit/31ad4ecc31fbffccc8fd0a57e71b188d2da76b45

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