test: Inject random errors in all clients during local development
What changed?
Injects random persistence errors into all clients during local development.
Why?
Injecting errors into our clients is a good way to ensure that we are writing resilient code. Seeing errors locally during workflow operations, replication, or matching that we aren't resilient to is best caught locally before hitting production.
It might also be worth configuring these in CI/CD environments so that we have automated tests running against an environment with these errors.
How did you test it?
Locally with my canary setup, e.g
docker compose -f docker/dev/cassandra.yml up
make install-schema-xdc
make start-xdc-cluster0
make start-xdc-cluster1
make start-xdc-cluster2
make start-canary
You will see a few injected errors that should be recovered from.
Potential risks
None
Release notes
None
Documentation Changes
None
Injects random persistence errors into all clients to improve local development resilience testing. No issues found. 1 rule not applicable. Show all rules by commenting Auto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:Code Review ✅ Approved
Rules ⚠️ 1/2 requirements met
Repository Rules
gitar display:verbose.Options
Display: compact → Showing less information.
Auto-apply
Compact
gitar auto-apply:on
gitar display:verbose
Was this helpful? React with 👍 / 👎 | Gitar