- Mar 08, 2022
-
-
David Douard authored
it's not used by swh.storage.
-
- Dec 08, 2021
-
-
Antoine Lambert authored
Now that we have packaged tenacity 6.2 for debian buster and use it in production, we can remove the workarounds to support tenacity < 5.
-
- Nov 09, 2021
-
-
David Douard authored
The idea is that we check the BaseModel validity at journal deserialization time so that we still have access to the raw object from kafka for complete reporting (object id plus raw message from kafka). This uses a new ModelObjectDeserializer class that is responsible for deserializing the kafka message (still using kafka_to_value) then immediately create the BaseModel object from that dict. Its `convert` method is then passed as `value_deserializer` argument of the `JournalClient`. Then, for each deserialized object from kafka, if it's a HashableObject, check its validity by comparing the computed hash with its id. If it's invalid, report the error in logs, and if configured, register the invalid object in via the `reporter` callback. In the cli code, a `Redis.set()` is used a such a callback (if configured). So it simply stores invalid objects using the object id a key (typically its swhid), and the raw kafka message value as value. Related to T3693.
-
- Sep 25, 2020
-
-
Nicolas Dandrimont authored
We stopped using it months ago.
-
- Sep 10, 2020
-
-
vlorentz authored
-
- Aug 11, 2020
-
-
vlorentz authored
All methods of CqlRunner were decorated, which prevented mypy from doing anything useful. As I finally found a way to type the decorator (using mypy_extensions.NamedArg), I can finally make mypy aware of the methods' types. This commit (as well as all three of the last commits) also fixes issues found by mypy thanks to this.
-
- Aug 07, 2020
-
-
vlorentz authored
Instead of untyped dictionaries. This makes snapshot_get longer and duplicates its code across backends; but snapshot_get should be removed soon. Related: T645
-
- Jun 23, 2020
-
-
David Douard authored
This endpoint is not really useful since the origin_add() can be used instead. Using a single API endpoint would also make the API a bit more consistant (most other endpoints only provide a xxx_add endpoint) ; having a single endpoint per object_type make is enough and make the whole API simpler.
-
- Jun 11, 2020
-
-
Antoine R. Dumont authored
This makes its api consistent with other add endpoints. This is preparatory work towards removing origin-visit-upsert. Related to T2310
-
- Feb 27, 2020
-
-
vlorentz authored
The bug that affected us in 3.21 is resolved ( https://datastax-oss.atlassian.net/browse/PYTHON-1205 ), so we can now use v3.22 to get wheels.
-
- Jan 31, 2020
-
-
vlorentz authored
-
- Jan 14, 2020
-
-
Antoine R. Dumont authored
Which is a maintained fork of retry
-
- Jan 10, 2020
-
-
Antoine R. Dumont authored
-
- Oct 11, 2017
-
-
Nicolas Dandrimont authored
- Jun 14, 2017
-
-
Antoine Pietri authored
-
- Jun 06, 2017
-
-
Antoine R. Dumont authored
The head version of the objstorage migrated. Thus the archiver tests broke locally. The test code was fixed to make the local tests pass with the actual head version of the objstorage. But we did not deploy the new objstorage yet, thus the archiver tests break during the packaging phase (of any swh.storage.* package). This commit is a temporary fix to make everyone happy (since we do need to package other storage version for example). This needs to be reverted as soon as we bump the dependency to the new objstorage (> 0.17). Related f681f83c Related b4dfe06f Related 08827dc5 Related D205
-
- Mar 23, 2017
-
-
Antoine R. Dumont authored
Related T529
-
- Mar 13, 2017
-
-
Antoine Pietri authored
-
- Feb 09, 2017
-
-
Antoine Pietri authored
-
Antoine Pietri authored
-
- Jan 26, 2017
-
-
Antoine R. Dumont authored
Closes T646
-
- Dec 20, 2016
-
-
Antoine R. Dumont authored
-
- Nov 03, 2016
-
-
Nicolas Dandrimont authored
The check_config method allows a dynamic check of the configuration for a running storage. We can make sure that we have proper permissions on the object storage as well as the database before running things.
-
- Sep 22, 2016
-
-
Antoine R. Dumont authored
-
- Sep 20, 2016
-
-
Antoine R. Dumont authored
-
Antoine R. Dumont authored
If you want the archiver to have cloud abilities, install the package python3-swh.objstorage.cloud on the server as well.
-
- Sep 14, 2016
-
-
Antoine R. Dumont authored
Actions storage: - Open cache_content_get to retrieve contents in cache - sql/upgrades/080: Add stored procedure to read contents from cache Actions archiver: - d/control: Add dependency to archiver on python3-swh.objstorage.cloud - Renamed Archiver(Director|Worker) to ArchiverWithRetentionPolicy(Director|Worker) - Add ArchiverToBackend(Director|Worker) - Add new celery task dedicated for new workers - Update docstring details Related T555
-
- Aug 23, 2016
-
- Aug 19, 2016
-
-
Nicolas Dandrimont authored
-
- Jul 19, 2016
-
-
Antoine R. Dumont authored
-
- Jun 27, 2016
-
-
Quentin Campos authored
Closes T460
-
- Jun 14, 2016
-
- May 19, 2016
-
-
Quentin Campos authored
Closes T404
-
- Mar 04, 2016
-
-
Nicolas Dandrimont authored
-
- Oct 05, 2015
-
-
Nicolas Dandrimont authored
-
- Oct 01, 2015
-
- Sep 29, 2015
-
- Sep 25, 2015
-
-
Nicolas Dandrimont authored
-