Project

General

Profile

Actions

Idea #16427

closed

"undelete" command to recover trashed blocks and restore a deleted collection

Added by Tom Clegg over 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Start date:
06/01/2020
Due date:
Story points:
3.0
Release relationship:
Auto

Description

In some cases, even when a collection has been deleted and keep-balance has trashed its data blocks, the collection is still partially or fully recoverable:
  • some blocks may not have been trashed because they are still referenced by other collections
  • some blocks may still be in the recoverable "trashed" state, if BlobTrashLifetime has not arrived yet

Given a manifest (or the UUID of a a collection update/delete log entry that has a manifest in old_attributes), the recovery command ("arvados-server undelete") should use keepstore's HEAD and untrash APIs to untrash the data as needed, make a new manifest with fresh signatures, and save a new collection.

If a block is not recoverable, the command should continue to untrash as many as it can, and report how many were attempted/successful, but not save a new collection. (Future improvement: save a partial collection in this case, omitting any files affected by the missing blocks.)


Files

16427-doc.png (205 KB) 16427-doc.png Tom Clegg, 06/05/2020 09:16 PM

Subtasks 1 (0 open1 closed)

Task #16454: Review 16427-undeleteResolvedTom Clegg06/01/2020Actions

Related issues

Related to Arvados - Support #16421: [doc] document deletion lifecycle of collections, and steps to undelete collectionsResolvedWard Vandewege09/02/2020Actions
Related to Arvados Epics - Idea #16514: Actionable insight into keep usageNewActions
Actions

Also available in: Atom PDF