Skip to content

[ISSUE #19] Fence server Snowflake workers with database leases - #43

Merged
mxsm merged 1 commit into
developfrom
mxsm/fix-07-worker-ownership
Nov 28, 2026
Merged

mxsm merged 1 commit into
developfrom
mxsm/fix-07-worker-ownership

Conversation

@mxsm

@mxsm mxsm commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Closes #19

Every server worker source now acquires a generation-specific database claim. Local monotonic deadlines gate every issued ID, including the return from clock waits. Stable physical node keys and optional managed worker ranges support dual-stack listeners and separation from offline SDKs. V2 preserves the historical allocation table and imports its worker IDs.

Verified with JDK 25 and the Maven wrapper: -Dflatten.skip=true clean verify. MySQL 8.4 ran 11 integration checks and PostgreSQL 18 ran 10, without skips. Coverage includes two live services on identical listeners, conflicting explicit IDs, IPv4/IPv6 binding changes, previous-owner expiry, V1 upgrade continuity and a suspended owner passing its local deadline. Existing worker handoff timestamp history is covered separately in #31.

@mxsm
mxsm force-pushed the mxsm/fix-07-worker-ownership branch from fc45fff to 06c0420 Compare November 28, 2026 11:31
@mxsm
mxsm merged commit 5ba515f into develop Nov 28, 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.

Enforce exclusive ownership for server Snowflake workers

1 participant