CurOp::_fetchStorageStatsIfNecessary may unnecessarily cause an operation to fail

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
            Reporter:
            Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: