Page MenuHomeSoftware Heritage

Add failure tests in swh-storage
Open, NormalPublic

Description

Not all writes are transactional:

  • we publish to Kafka before committing in postgresql
  • writes in cassandra are not transactional

we should write tests that cover at least non-crash failure scenarios, eg by monky-patching psycopg2 or cassandra-driver (or CqlRunner) to raise an unexpected exception.

Event Timeline

vlorentz triaged this task as Normal priority.Jun 4 2020, 2:17 PM
vlorentz created this task.
vlorentz updated the task description. (Show Details)Jun 4 2020, 2:19 PM