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

CurOp::_fetchStorageStatsIfNecessary may unnecessarily cause an operation to fail

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc6
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • Fully Compatible
    • v8.0
    • Programmability 2024-05-27

      As part of normal find command execution we first build up a batch of results and then we proceed to create a client cursor.

      However, SERVER-84574 made it so the execution of endQueryOp may now throw an error due to an attempt to acquire the global lock which is still held at this point by the caller. This causes the entire execution to fail even if we've already processed everything for the user and are just doing some curop accounting.

            Assignee:
            ryan.berryhill@mongodb.com Ryan Berryhill
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: