Skip to content

Check cluster isolation through buffered replication and reconnects - #11

Open
jeregrine wants to merge 1 commit into
test-receiver-batch-boundariesfrom
test-receiver-cluster-isolation
Open

Check cluster isolation through buffered replication and reconnects#11
jeregrine wants to merge 1 commit into
test-receiver-batch-boundariesfrom
test-receiver-cluster-isolation

Conversation

@jeregrine

Copy link
Copy Markdown
Member

Problem

A disconnected named cluster can appear correctly empty even if queued replication was incorrectly applied and then purged. Index consistency and final-state checks alone miss the transient lifecycle events, while stale batches and snapshots can also repopulate a cluster after it has been left.

Fix

Add generated scenarios for both registry and PG lanes that prove operations are buffered before disconnect. Require the disconnect path and subsequent batch/snapshot replay to leave the cluster empty without emitting apply-then-purge events.

Vary shard counts, receiver buffers, metadata, and reconnect cycles. Reconnected clusters must accept fresh snapshots, and entries using the same key in the default and another named cluster must survive throughout.

Supporting information

Stacked on #10, following #8. This PR adds only cluster-isolation properties and their snapshot helper, reusing the fixture and history oracle from the preceding PR.

Signals are deliberately delivered to the receiver while owner processes remain alive. This isolates membership gating from network lifecycle behavior; production behavior is unchanged.

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