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

forEachCollectionFromDb() should skip collections that were dropped

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.11
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage NYC 2019-05-06
    • Linked BF Score:
      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

            Assignee:
            gregory.wlodarek Gregory Wlodarek
            Reporter:
            gregory.wlodarek Gregory Wlodarek
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: