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

Add UpdateOneDefaultStrategy

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.11.0
    • Affects Version/s: None
    • Component/s: Sink
    • None
    • Needed

      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}

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

              Created:
              Updated:
              Resolved: