Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43043

Add idempotency test for two fields updates

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2019-09-09

    Description

      Multi-field update op may fail because one field updates a subdocument or subarray field and the sub document/array doesn't exist (because it was deleted by a later op). In that case, the entire update failed to apply. Here's a concrete example.

      Before initial sync, the doc is {y: [0]}
      --------- start clone --------- 
      x = 1
      x = 2, y.0 = 2 (multi-field update)
             y = 3
      --------- end clone -----------
      The expected state is {x: 2, y: 3}
      

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: