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

Synchronise collecting storage engine stats with shutdown

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.9, 4.1.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.0
    • Storage Engines 2019-02-11, Storage Engines 2019-02-25
    • 25
    • 5

      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.

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

              Created:
              Updated:
              Resolved: