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

Retried findAndModify doesn't properly wait for writeConcern

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.3, 3.7.1
    • Fix Version/s: 3.6.5, 3.7.4
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v3.6
    • Sprint:
      Sharding 2018-04-09
    • Linked BF Score:
      0

      Description

      Similar to SERVER-33232, a fully retried write (write was sent more than once to the server and no writes needs to be done at this moment because they were already completed in the previous attempts) will never acquire the global lock in mode X or IX, and will thus not satisfy this condition:

      https://github.com/mongodb/mongo/blob/r3.7.1/src/mongo/db/service_entry_point_mongod.cpp#L356-L360

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              renctan Randolph Tan
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: