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

Check if openDB still throws a MustDowngrade error

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • Execution Team 2021-11-01

      Potentially, there may be an extraneous catch case that can be removed.

      Motivation:
      Inside repairDatabase there is a try catch that catches a MustDowngrade Exception. The comment states "openDb can throw an exception with a MustDowngrade status if a collection does not have a UUID."

      From a brief inspection, this seems to no longer be the case for openDB. Instead, it seem like repairCollections calls repairRecordStore which then calls _initCollection, where a MustDowngrade Error can occur.

            Assignee:
            gabriel.marks@mongodb.com Gabriel Marks
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: