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

Incorrect initialization order in WiredTigerKVEngine

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.2.4, 3.3.3
    • Component/s: WiredTiger
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Integration 10 (02/22/16)
    • Linked BF Score:
      0

      Description

      In the WiredTigerKVEngine, an incorrect initialization order of private fields can lead to a race condition at shutdown. The KVEngine's SizeStorer is depended on by the JournalFlusher and so should be initialized beforehand to get the proper destruction order on shutdown.

      In addition, shutdown calls for components of the KVEngine in WiredTigerKVEngine::cleanShutdown() should be reordered to match the actual order of destruction.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: