[KAFKA-168] Add a DeleteOneBusinessKeyStrategy Created: 16/Oct/20  Updated: 28/Oct/23  Resolved: 01/Mar/21

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

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

Issue Links:
Issue split
split to KAFKA-199 Introduce a mechanism of differentiat... Backlog
Related
Documentation Changes: Needed
Documentation Changes Summary:

Added new WriteStrategy:

`com.mongodb.kafka.connect.sink.writemodel.strategy.DeleteOneBusinessKeyStrategy` - For when a topic contains records identifying data that should be removed from MongoDB.


 Description   

The _id generation could easily come from the sinks value document.

The idStrategy isn't configurable as expected. It also should support partial projections and not nest them in a _id field.



 Comments   
Comment by Githook User [ 19/Feb/21 ]

Author:

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

Message: Create DeleteOneBusinessKeyStrategy.java (#56)

Create a custom delete write strategy.

KAFKA-168

Co-authored-by: sotojuan2 <soto.juan@gmail.com>
Branch: master
https://github.com/mongodb/mongo-kafka/commit/8219622a54a94d6dbeb8db861a5d0cc2811d356d

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