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

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.3, 4.1.3
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0
    • Epic Link:
    • Sprint:
      Storage NYC 2018-08-27
    • Linked BF Score:
      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

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

              Dates

              Created:
              Updated:
              Resolved: