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

Audit and replace all old-style update calls with new update implementation

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Write Ops
    • Query Execution

    Description

      There are presently code paths in which upsert takes exclusive database locks (e.g., SERVER-45955). It looks like there is also an update helper that takes an exclusive database lock for upsert. This update helper is currently used in various places, e.g., during oplog application, as well as in the dbhelpers upsert and putSingleton methods.

      Any usages of this old-style update() method should be replaced with an equivalent write_ops_exec based implementation, to avoid the costly exclusive database lock and to guarantee consistency of implementation.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: