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

lockAndCheck sometimes doesn't set error result in batch writes

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Write Ops
    • None
    • ALL
    • v3.0
    • Repl 18 (08/05/16), Repl 2016-08-29, Query 2017-01-23

    Description

      For three cases (isMaster, shard version check, and index constraint check), lockAndCheckImpl() returns false without setting an error in the result. This might result in write operations silently failing without notification to the user, although it doesn't seem to matter for the isMaster case since the connection will always be terminated without returning to the user.

      This code is scheduled to be refactored in 3.4 but we need to fix it in prior versions.

      Attachments

        Activity

          People

            david.storch@mongodb.com David Storch
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: