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

Retried findAndModify doesn't properly wait for writeConcern

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.5, 3.7.4
    • Affects Version/s: 3.6.3, 3.7.1
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • v3.6
    • Sharding 2018-04-09
    • 0

      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

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: