Create findAndNoopUpdate method in Helpers

XMLWordPrintableJSON

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

      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
              Reporter:
              Janna Golden
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: