Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swh.scrubber-0.0.5.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swh.scrubber-0.0.5-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

Details for the file swh.scrubber-0.0.5.tar.gz.

File metadata

  • Download URL: swh.scrubber-0.0.5.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.3

File hashes

Hashes for swh.scrubber-0.0.5.tar.gz
Algorithm Hash digest
SHA256 cc658be647c2e06c593d7132c598e3b13234eda13c68fd6b9746ff4ebc8f46ea
MD5 9244305ff77c1f778d56a6d65edc641b
BLAKE2b-256 fb7559e231de84110480cdb878ec1ed45fde3b859ce9f3856cf14e13be1d2e2c

See more details on using hashes here.

File details

Details for the file swh.scrubber-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: swh.scrubber-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.3

File hashes

Hashes for swh.scrubber-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c7517676da2fdf635827c7ee1174f5d33d57dd1907726d6737ced64f0526c8ea
MD5 8d69f11d2db17b5e46d2199f1e982d90
BLAKE2b-256 9bfbb3c221710d4332f7f52aad77541dbe6af0dac22c60b286cd7e75a2c9c78e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page