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

deleteHaystackIndexesOnUpgrade could dereference inexistent collection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL

      When running the setFeatureCompatibility command to upgrade to 5.0, the haystack indexes are deleted. _deleteHaystackIndexesOnUpgrade iterates over the collections for each db. However, if a collection was dropped concurrently before constructing AutoGetCollectionForRead, then the node will crash when dereferencing a null collection.

            Assignee:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: