Actions
Bug #7253
closed[Keep] [Data Manager] [SDKs] Test behavior in the face of API and manifest errors
Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
Keep
Target version:
Story points:
2.0
Description
Tests must ensure Data Manager stops without deleting anything in all of the following situations:
- A network error is encountered when getting the collection list from the API server.
- An API error is encountered when getting the collection list (for example, its token expires between fetching page N and fetching page N+1).
Its token does not allow it to see all collections (i.e., it is not an admin token).(test already added in #6260, but worth double-checking!)- A collection manifest does not have the expected format. (In particular, the current code stops parsing a stream as soon as it sees a token that doesn't satisfy its locator regexp. This approach is fragile: it can cause data loss if a manifest contains a block locator that is acceptable to the API server's validation method but doesn't match Data Manager's regexp. We should assume the manifest and locator formats will change over time, and make sure a too-old version of Data Manager does not delete valuable data when asked to do garbage collection for a new/upgraded Arvados installation.)
Actions