Details
-
Improvement
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
None
-
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.