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

Synchronise collecting storage engine stats with shutdown

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.9, 4.1.9
    • None
    • None
    • Fully Compatible
    • v4.0
    • Storage Engines 2019-02-11, Storage Engines 2019-02-25
    • 25
    • 5

    Description

      We are erroneously calling into the storage engine as part of CurOp::completeAndLogOperation() without holding any locks. This means there is no synchronization between server shutdown (or rollbackToStable) and this function call to access the statistics on the session.
      We need to fix the design of stats gathering and might need to gather the stats earlier, as part of the WriteUnitOfWork destruction, so that stats will be local and can be put into the slow-query log entry.

      Attachments

        Issue Links

          Activity

            People

              sulabh.mahajan@mongodb.com Sulabh Mahajan
              vamsi.krishna@mongodb.com Vamsi Boyapati
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: