Skip to content
Snippets Groups Projects
  1. Oct 04, 2023
  2. Sep 26, 2023
  3. Sep 25, 2023
  4. Sep 22, 2023
  5. Sep 20, 2023
  6. Sep 19, 2023
  7. Sep 12, 2023
  8. Sep 11, 2023
  9. Sep 06, 2023
    • David Douard's avatar
      replayer: add a --known-missmatched-hashes argument to the replay command · 7d16b630
      David Douard authored
      This accepts a file of swhids of objects that are known to be invalid
      (hash mismatch) but should be replayed anyway (typically because they do
      exist as is in the original storage).
      
      The file is expected to have rows like:
      
        swh:1:xxx:<invalid_hex_hash>,<expected_hex_hash>
        [...]
      
      Note that the cli only accepts swhids in the exception file, while the
      backend (ModelObjectDeserializer) support all HashableObject. But we
      currently do not need this feature on the cli tool for other object
      types, and doing it this way is simpler in terms of type annotation.
      7d16b630
    • David Douard's avatar
      postgresql: Reduce risks of spurious concurrency insertion issues in directory_add · 250177da
      David Douard authored
      The idea is that 2 workers may insert similar directories concurrently,
      thus attempt to create identical DirectoryEntry objects in concurrent
      transactions, making one of the 2 transaction fail at commit time with
      a UniqueViolation error.
      
      But since rows in a `directory_entry_xxx` table consist only on the
      triplet `(target, name, perms)` and we run the db in read committed
      isolation level, when the next query (filling the `tmp_directory`
      table) in `swh_directory_entry_add()` sql function is executed, the
      insertion of conflicting rows from other transactions has been
      committed and is now visible in this transaction, so these conflicts
      can be simply ignored.
      
      Upgrade db version to 190.
  10. Sep 05, 2023
  11. Sep 04, 2023
  12. Sep 01, 2023
  13. Aug 31, 2023
  14. Aug 30, 2023
  15. Aug 29, 2023
  16. Aug 21, 2023
    • Jérémy Bobbio (Lunar)'s avatar
      Add StorageInterface.skipped_content_find() · e2aad696
      Jérémy Bobbio (Lunar) authored
      To create recovery bundle, `swh-alter` needs to be able to retrieve
      full SkippedContent objects from the storage.
      
      The new method `skipped_content_find()` allows to retrieve all
      SkippedContent objects matching a given set of hashes. Usually, this
      should only be one, but multiple objects might be returned in case of
      hash collisions.
      
      While implementing this, #4693 was identified which prevent
      testing the implementation with the PostgreSQL storage in the case
      a SkippedContent references a known origin.
      
      Thanks to olasd and vlorentz for the reviews and suggesting small
      improvements.
  17. Aug 10, 2023
  18. Aug 09, 2023
  19. Aug 08, 2023
  20. Jul 07, 2023
  21. Jul 06, 2023
  22. Jun 21, 2023
  23. Jun 19, 2023
  24. Jun 12, 2023
  25. Jun 06, 2023
  26. Jun 05, 2023
Loading