Joystream / Joystream/joystream

Lost object investigation tool

Open
#5,006 2 comments 0 reactions 1 assignee Claimed by @attemka View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

## Lost Objects:

### Description:
A tool to identify and locate lost objects.

#### collect: Find all objects and bags that :

- Locally stored: Collect a json of all object stored locally.
- QN associated with a bucket: Query QN for all objects associated with the bucket
- Remote stored: Query storage node for all object stored on the remote storage node

#### Compare:

compare local objects to QN objects.
compare Remote objects to QN objects.
Compare two buckets objects (QN)
Check: Check for missing local objects by doing http head to:

Other bucket assigned to the object's bag
All other buckets
Download: download missing object if head check is positive 

### Input:

0- Function: collect (local,remote, QN), compare , checks, download.
1- Bucket
2- Local directory

### Output:

Type: json

collect: [{ Object: {bag}} ,...]
Compare: [{ Object: {bag}},...]
checks: [{ Object: {bag, bucket: {url}}},...]
downlead: [{ Object: {bag, bucket: {url, status}}},...]

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.