Skip to content

Comments

test: cover startup recovery for inactive invalidated slot#45

Merged
psteinroe merged 2 commits intomainfrom
test/inactive-slot-startup-recovery
Feb 16, 2026
Merged

test: cover startup recovery for inactive invalidated slot#45
psteinroe merged 2 commits intomainfrom
test/inactive-slot-startup-recovery

Conversation

@psteinroe
Copy link
Owner

Summary

  • add a dedicated slot recovery integration test for startup when the replication slot is already inactive and invalidated
  • assert active = false before startup and wal_status = 'lost' before restart to cover the exact inactive-at-start condition
  • verify startup surfaces a slot invalidation error and then recovery drops the invalidated inactive slot

Testing

  • cargo test --features test-utils --test slot_recovery_tests -- --nocapture

@psteinroe psteinroe merged commit 076b76d into main Feb 16, 2026
6 checks 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