Skip to content
Snippets Groups Projects
  1. Aug 30, 2024
  2. Aug 27, 2024
  3. May 15, 2024
  4. Apr 11, 2024
  5. Apr 04, 2024
  6. Apr 02, 2024
    • Antoine Lambert's avatar
      cli: Prevent YAML wrapping in help displayed by Click · e8b15c82
      Antoine Lambert authored and Antoine Lambert's avatar Antoine Lambert committed
      The default behavior of Click is to rewrap text based on the width of
      the terminal but as a consequence it makes the sample YAML config for
      the scrubber displayed in command help quite unreadable as indentation
      is lost.
      
      So use \b markers in docstring to ensure proper display of the YAML
      config by Click.
      e8b15c82
  7. Mar 29, 2024
  8. Mar 25, 2024
  9. Mar 22, 2024
  10. Mar 13, 2024
  11. Feb 06, 2024
  12. Feb 05, 2024
  13. Feb 02, 2024
  14. Dec 05, 2023
  15. Dec 03, 2023
  16. Nov 30, 2023
  17. Nov 24, 2023
  18. Oct 17, 2023
    • David Douard's avatar
      Add a cli command to get statistics for a given config entry · c0a4d44b
      David Douard authored
      As well as a command to list partitions being checked.
      
      For example:
      
      ```
      $ swh scrubber check stats snapshot_16 -j
      {
        "config": {
          "name": "snapshot_16",
          "datastore": {
            "package": "storage",
            "cls": "postgresql",
            "instance": "postgresql:///?service=swh-storage"
          },
          "object_type": "snapshot",
          "nb_partitions": 65536,
          "check_hashes": true,
          "check_references": true
        },
        "min_duration": 0.002196,
        "max_duration": 0.107398,
        "avg_duration": 0.005969,
        "checked_partition": 65536,
        "running_partition": 0,
        "missing_object": 0,
        "missing_object_reference": 0,
        "corrupt_object": 0
      }
      
      $ swh scrubber check running cfg1
      
      Running partitions for cfg1 [id=1, type=snapshot]:
      0:	running since today (20 minutes)
      
      ```
      c0a4d44b
  19. Oct 16, 2023
  20. Oct 12, 2023
    • David Douard's avatar
    • David Douard's avatar
      Add support for 2 check config flags in the check_config table · 566db2ac
      David Douard authored
      These flags allow to configure a checking session including only one of
      the 2 possible checks (hash computation and reference validation).
      566db2ac
    • David Douard's avatar
      run mypy with --install-types by default · c08c10b1
      David Douard authored
      Which allows to remove the dependency on types-pyyaml in [testing]
      extra.
      c08c10b1
    • David Douard's avatar
      Refactor data model to use config_id instead of datastore in xxx_object tables · bd8e324c
      David Douard authored
      These tables used to reference the datastore the invalid/missing object
      was found in, but not keeping the config entry, i.e. the checking session
      during wich the invalid/missing object was found, which can be an issue
      when more than one checking session is executed on a given datastore.
      
      This replaces the `datastore` field of tables `corrupt_object`,
      `missing_object` and `missing_object_reference` tables by `config_id`.
      
      Adapt all the code accordingly.
      
      Note that it changes a bit the cli usage: the kafka checker now needs
      a config entry, thus a kafka checking session can ony target a given
      object type (i.e. one kafka topic),
      
      The migration script will fill the config_id column for corrupt_object
      using the check_config entry that matches the oject_type (of
      corrupt_object) and datastore. For missing_object and
      missing_object_reference, it will use this later table to idenify the
      check_config entry corresponding object type for the reference_id and
      datastore, since it is a checking session on this object type that will
      generate a missing object entry (which is generaaly not of the same
      type). For the missing_object table, the config_id will use the one
      extracted from the missing_object_reference (joining on the missing_id
      column).
      
      Note that the migration script will fail if there are rows in one
      of these tables for which there exists more than one possible
      config_entry (i.e. with the same object_type and datastore).
      bd8e324c
  21. Sep 21, 2023
  22. Aug 24, 2023
  23. Jul 26, 2023
Loading