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

Unit test the storage engines begin/endBackup functions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Storage
    • None
    • Fully Compatible
    • 0

    Description

      Currently, we have no direct testing of the beginBackup and endBackup functionality of each storage engine.

      These tests would only cover the actions taken by any implementation of a storage engines itself when receiving the beginBackup function call from the StorageEngine API.

      As there is protection in the StorageEngine API to prevent multiple subsequent calls to the beginBackup API the behaviour of multiple calls in the storage engine layer is undefined and untested.

      We should add unit tests which cover the following correct behaviour is displayed by each implementation of an engine within MongoDB:

      • That the API returns OK status to beginBackup followed by endBackup
      • That the API causes MongoDB to hit a MONGO_UNREACHABLE when endBackup is called when the API does not provide backup functionality.

      Attachments

        Activity

          People

            david.hows David Hows
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: