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

forEachCollectionFromDb() should skip collections that were dropped

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.11
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-05-06
    • 23

    Description

      forEachCollectionFromDb() grabs the collection UUID from the UUIDCatalog iterator, however between getting the UUID and resolving the namespace string, the collection could be dropped as we're not holding any locks and it would return the empty namespace string, hitting an invariant later on.

      Additionally, lookupNSSByUUID should use the CollectionCatalogEntry to retrieve the NamespaceString in the event that the Collection pointer is dropped.

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: