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

IndexCatalogImpl::numIndexesTotal cannot assume all indexes are visible

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2020-10-19
    • 40

    Description

      With the removal of the collection minimumVisibleSnapshot setting for index builds, certain assumptions about the index catalog can no longer be guaranteed when using AutoGetCollectionForRead.

      When createIndexes determines whether an existing index already exists under a collection IX lock, it calls numIndexesTotal. In debug builds, this asserts that all indexes are visible in the current snapshot, which is no longer guaranteed by AutoGetCollectionForRead.

      I think we should just remove the assertion in numIndexesTotal, since it's hard to enforce.

      Attachments

        Activity

          People

            louis.williams@mongodb.com Louis Williams
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: