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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.3, 4.1.3
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-08-27
    • 65

      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.

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

              Created:
              Updated:
              Resolved: