Repository navigation
fix(#1175, #1192): a failed list-index or state write is reported, not swallowed - #1414
Conversation
…t swallowed #1175: updateStringIndex, removeFromStringIndex and the per-service list helpers return their errors, and all 167 callers propagate them. A create whose index write fails answers 500 InternalFailure rather than 200 over a resource missing from its own list. The record-without-index partial state is documented. #1192: 43 discarded state.Put sites, plus list removals, ECR tag maps, S3 version lists, SQS FIFO dedup, DynamoDB stream records, the Lambda replay cache, CloudFormation stack records and EC2's default-VPC writes, now return their errors. TestServer seed helpers fail the test on a store failure. A 59-case sweep refuses each write in turn and asserts a 500. The new make discarded-state-check gate (scripts/check-discarded-state.sh), wired into CI, fails on a new discarded state write; nothing is allowlisted. The eight #1365 marshal allowlist entries for these helpers are removed. The default in-memory store never fails, so nothing changes for it. Fixes #1175 Fixes #1192
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
Merging with codecov/patch at 66%, deliberately, on the same reasoning as #1392. The 229 uncovered lines are new |
#1175: updateStringIndex, removeFromStringIndex and the per-service list
helpers return their errors, and all 167 callers propagate them. A create
whose index write fails answers 500 InternalFailure rather than 200 over a
resource missing from its own list. The record-without-index partial state is
documented.
#1192: 43 discarded state.Put sites, plus list removals, ECR tag maps, S3
version lists, SQS FIFO dedup, DynamoDB stream records, the Lambda replay
cache, CloudFormation stack records and EC2's default-VPC writes, now return
their errors. TestServer seed helpers fail the test on a store failure. A
59-case sweep refuses each write in turn and asserts a 500.
The new make discarded-state-check gate (scripts/check-discarded-state.sh),
wired into CI, fails on a new discarded state write; nothing is allowlisted.
The eight #1365 marshal allowlist entries for these helpers are removed. The
default in-memory store never fails, so nothing changes for it.
Fixes #1175
Fixes #1192
Compatibility
Only a
StateManagerthat can fail sees a difference. A write failure on these paths answers 500InternalFailureinstead of 200, and a corrupt list index errors on removal instead of being skipped. With the default in-memory store, nothing changes.