Project

General

Profile

Actions

Story #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:
% Done:

100%

Estimated time:
(Total: 0.00 h)
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/2020

Actions

Related issues 2 (1 open1 closed)

Related to Arvados - Support #16421: [doc] document deletion lifecycle of collections, and steps to undelete collectionsResolvedWard Vandewege09/02/2020

Actions
Related to Arvados Epics - Story #16514: Actionable insight into keep usageNew09/01/202303/31/2024

Actions
Actions

Also available in: Atom PDF