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

Only recover orphaned collection idents when starting with repair, not after an unclean shutdown

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.3, 4.1.3
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-08-27
    • 65

    Description

      SERVER-35696 made it possible to recover idents with no matching catalog entry as "orphans" in a special namespace, "local.system.orphan-collection-****. This change unintentionally used this behavior when starting from unclean shutdowns, not just when using --repair.

      This means that in tests that do many rollbacks, hundreds of collections are created in the "local" database unnecessarily in routine, expected scenarios.

      This code should be changed to include only _options.forRepair, not loadingFromUncleanShutdownOrRepair.

      Attachments

        Activity

          People

            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: