Files
tasks/tests/testdata/acquire_shard_deadline_exceeded_error.yaml
Alex ShtinandGitHub 90aa0fea11 Add more errors to targeted fault injector (#4711)
<!-- Describe what has changed in this PR -->
**What changed?**
- Added `ResourceExhausted` and `Unavailable` errors to target fault
injector error factory.
 - Small renames.

<!-- Tell your future self why have you made these changes -->
**Why?**
To support more fault testing scenarios such as persistence rate
limiting.

<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
Run locally.

<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
No risks.

<!-- Is this PR a hotfix candidate or require that a notification be
sent to the broader community? (Yes/No) -->
**Is hotfix candidate?**
No.
2023-08-02 02:00:47 +00:00

17 lines
367 B
YAML

enablearchival: false
clusterno: 0
historyconfig:
numhistoryshards: 1
numhistoryhosts: 1
workerconfig:
enablearchiver: false
enablereplicator: false
faultinjection:
targets:
dataStores:
ShardStore:
methods:
UpdateShard:
errors:
DeadlineExceeded: 1.0 # 100% of the time, return a deadline exceeded error