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

CollectionShardingState / ScopedCollectionMetadata destructor races

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.4.0, 3.5.7
    • 3.4.5, 3.5.8
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Intermittent; run jstests

      Show
      Intermittent; run jstests
    • Sharding 2017-05-29
    • 0

    Description

      There are numerous races of various sorts around destruction of MetadataManager and ScopedCollectionMetadata objects. Fixing them requires changes to ScopedCollectionMetadata and CollectionMetadataTracker layout, and locking in the MetadataManager destructor.

      Reproduce by running jstests/sharding/cleanup_orphaned_cmd_during_movechunk.js and jstests/concurrency/fsm_all_simultaneous repeatedly.

      Attachments

        Activity

          People

            nathan.myers Nathan Myers
            nathan.myers Nathan Myers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: