Project

General

Profile

Actions

Bug #7253

closed

[Keep] [Data Manager] [SDKs] Test behavior in the face of API and manifest errors

Added by Tom Clegg almost 9 years ago. Updated over 8 years ago.

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.)

Subtasks 1 (0 open1 closed)

Task #7785: Review branch: 7253-datamanager-test-errors in arvados and 7253-add-go-sdk-manifest in arvados-devResolvedRadhika Chippada09/10/2015Actions

Related issues

Related to Arvados - Idea #6260: [Keep] Integration test between data manager, API and keepstore.ResolvedRadhika Chippada08/19/2015Actions
Actions

Also available in: Atom PDF