objstorage_checker: Add support for consuming content ids from journal
Compare changes
Files
2- Antoine Lambert authored
Add ObjectStorageCheckerFromJournal class to consume content ids from a kafka topic in order to check their presence in a given object storage but also to check their integrity by fetching their bytes and recomputing checksums. Related to #4694.
@@ -4,6 +4,7 @@
@@ -12,7 +13,8 @@ from swh.journal.serializers import kafka_to_value
@@ -32,35 +34,49 @@ def datastore(swh_objstorage_config):
@@ -69,15 +85,15 @@ def test_objstorage_checker_missing_content(
@@ -86,7 +102,7 @@ def test_objstorage_checker_missing_content(
@@ -94,8 +110,8 @@ def test_objstorage_checker_missing_content(
@@ -103,17 +119,17 @@ def test_objstorage_checker_corrupt_content(
@@ -126,8 +142,99 @@ def test_objstorage_checker_corrupt_content(