Uploaded image for project: 'Kafka Connector'
  1. Kafka Connector
  2. KAFKA-113

Writemodel upsert strategy which can target multiple fields

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • 1.3.0
    • None
    • Sink
    • None

    Description

      Hello again,

      We recently upgraded our sharded mongodb cluster to 4.2.0+ and encountered an issue where we wanted upserts but the mongodb connector creates upserts which only match on the _id field and our sharded collections have compound shard keys.

      I created a writemodel strategy which creates upserts that can be configured to target multiple fields, hopefully it can be of use. As before I have included tests,

      https://github.com/mongodb/mongo-kafka/pull/16

      Thanks!

      -Pat

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            patwakeem@gmail.com Pat W
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: