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

Create findAndNoopUpdate method in Helpers

    • Fully Compatible
    • Sharding 2020-11-30, Sharding 2020-12-14
    • 50

      Applying oplog entries during resharding is subject to write skew when reading from the output collection. In order to avoid this and force a read-write conflict, add a new method to Helpers that will run a find followed by an update using the doc we've just read (so the update is a no-op) in order to force a conflict and avoid write skew. This is meant to mimic WTs reserve method.

            Assignee:
            janna.golden@mongodb.com Janna Golden
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: