Skip to content

test: inject dead-letter persistence failures - #9

Merged
nooby6 merged 4 commits into
mainfrom
test/dead-letter-transaction-failures
Oct 16, 2026
Merged

nooby6 merged 4 commits into
mainfrom
test/dead-letter-transaction-failures

Conversation

@nooby6

@nooby6 nooby6 commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Inject a PostgreSQL failure when writing a dead-letter record.
  • Verify retry exhaustion rolls back the job state change when dead-letter persistence fails.
  • Verify expired-lease recovery rolls back atomically when the dead-letter write fails.
  • Update the README to distinguish completed failure-injection coverage from remaining process-level restart testing.

Why

A job must not be left marked failed without its corresponding dead-letter record. These tests exercise the transactional guarantee by forcing the database write to fail.

Validation

GitHub Actions will run the Go suite against PostgreSQL 16 and the claim benchmark.

@nooby6
nooby6 merged commit 371d604 into main Oct 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant