Closed tvaron3 closed 1 year ago
LGTM - nit: can we please add the actual flag in the PR description?
LGTM - nit: can we please add the actual flag in the PR description?
I saw you updated, but I meant show the value that customer will need to update in their config file for the connector - I think its connect.cosmos.sink.bulk.duplicates.enabled
?
Theo I changed it again and the value they would need to change is "connect.cosmos.sink.bulk.compression.enabled".
Type of PR
Purpose of PR
The bulk upsert operation will sometimes write data with duplicate id and partition key incorrectly. This change prevents duplicate items to be sent to the bulk upsert operation. It should only send the latest item. The feature is hidden behind a new config that is set to true by default. The flag added is called "connect.cosmos.sink.bulk.compression.enabled".
Observability + Testing
What changes or considerations did you make in relation to observability?
Did you add testing to account for any new or changed work? I added a unit test and a integration test for the changes I made in the bulkwriter.
Review notes
Issues Closed or Referenced