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

50% regression in single multi-update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 4.4.8, 5.0.2
    • Fix Version/s: 5.2 Desired
    • Component/s: None
    • Labels:
    • Operating System:
      ALL
    • Sprint:
      Repl 2021-09-20, Replication 2021-12-13
    • Case:

      Description

      Insert 1M documents like so into a collection:

      {x: 'x'.repeat(100), modified: false}
      

      Then update like so:

      db.c.updateMany({}, {$set: {modified: true}}, {writeConcern: {w: "majority"}})
      

      Timings are as follows:

      4.2.15: 56s
      4.4.8:  82s
      5.0.5:  86s
      

      PMP profiling shows this seems to be accounted for by contention on the replication coordinator mutex in setMyLastAppliedOpTimeAndWallTimeForward.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              matthew.russotto Matthew Russotto
              Reporter:
              bruce.lucas Bruce Lucas
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated: