Restart btcdata after losing its writer session #3

Merged
magnus merged 1 commits from fix/restart-closed-writer-session into master 2026-10-09 13:00:22 +00:00
Owner

Fix the Running-but-unready failure after the fenced JDBC session closes. Liveness now checks local session state and returns 503 for an irrecoverable closed or missing session, allowing Kubernetes to restart safely. No external dependencies or SQL queries are added to liveness; single-writer fencing remains intact.

Includes regression tests and incident/recovery documentation.

Validation: 21 unit tests, 63 assertions passed. Disposable PostgreSQL integration tests will run in PR CI (local Docker unavailable).

Merging to master triggers the image build. Flux apps reconciliation is currently dependency-blocked by image-repository health checks, so merge alone does not confirm deployment.

Fix the Running-but-unready failure after the fenced JDBC session closes. Liveness now checks local session state and returns 503 for an irrecoverable closed or missing session, allowing Kubernetes to restart safely. No external dependencies or SQL queries are added to liveness; single-writer fencing remains intact. Includes regression tests and incident/recovery documentation. Validation: 21 unit tests, 63 assertions passed. Disposable PostgreSQL integration tests will run in PR CI (local Docker unavailable). Merging to master triggers the image build. Flux apps reconciliation is currently dependency-blocked by image-repository health checks, so merge alone does not confirm deployment.
magnus added 1 commit 2026-10-09 12:58:55 +00:00
magnus merged commit 872c87cf3c into master 2026-10-09 13:00:22 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: magnus/btcdata#3