-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API for localstore scanning #4566
Comments
I simply expanded the /pins/{reference} to include detailed information on the chunks involved in the pin set.
My hacked API also includes the option to ?repair=true that will do some attempt at repairing the refCnt for local chunks. |
Here's an example of a multi-chunk pinned reference with a chunk missing in the middle. Notice the
|
Oh, and I also have hacked the /pins API itself to handle a ?limit=L&offset=O similar to what /tags has. Otherwise, I can't even query all of my pins, the node runs out of memory and panics. |
A new tool has been implemented which scans a localstore folder for corrupted and invalid chunks versus total amount of chunks per file belonging to pinned content.
The tool is here: https://github.com/ethersphere/bee/tree/feat-integrity-cmd
We need an API to serve this tool to the users, along with its relevant documentation:
This will produce a csv file with all the pins and their stats.
To select the ones that are problematic run:
The file will contain the addresses of pins that the user might want to unpin/re-upload. The original files can be found by their hash.
The text was updated successfully, but these errors were encountered: