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

Add UpdateOneDefaultStrategy

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.11.0
    • None
    • Sink
    • None
    • Needed

    Description

      Currently the default write model strategy is replace, there has been requests for performing an update.  

       
      replace one (current default) is an upsert, however if the document exists it replaces the whole document with the new one. The problem can be seen if the existing document is:
      {_id: 1, a: 0, b: 0, c:0}
      and you replace with 
      {_id: 1, a: 1}
      the destination document will be 
      }}{{{_id: 1, a: 1}{{}}
      {{}}
      not
      {_id: 1, a: 1,b: 0, c:0}

      We should add a UpdateOneDefaultStrategy such that the destination document in this scenario will be
      {_id: 1, a: 1,b: 0, c:0}

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            robert.walters@mongodb.com Robert Walters
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: