Software Heritage Datastore Scrubber
Project description
Tools to periodically checks data integrity in swh-storage and swh-objstorage, reports errors, and (try to) fix them.
This is a work in progress; some of the components described below do not exist yet (cassandra storage checker, objstorage checker, recovery, and reinjection)
The Scrubber package is made of the following parts:
Checking
Highly parallel processes continuously read objects from a data store, compute checksums, and write any failure in a database, along with the data of the corrupt object.
There is one “checker” for each datastore package: storage (postgresql and cassandra), journal (kafka), and objstorage.
Recovery
Then, from time to time, jobs go through the list of known corrupt objects, and try to recover the original objects, through various means:
Brute-forcing variations until they match their checksum
Recovering from another data store
As a last resort, recovering from known origins, if any
Reinjection
Finally, when an original object is recovered, it is reinjected in the original data store, replacing the corrupt one.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for swh.scrubber-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e861d26d63db20585409b2d43eb5ca75dfb5ab0b4ea242579ea2e208f13533aa |
|
MD5 | 1eedbb00fa95c4c2dff8e27966e7b4c0 |
|
BLAKE2b-256 | fba4c39cc5112e5aec2550d8dd8d8912d09647d0d7c7f33f4cd27dd8423ee02a |