Skip to content

[core] Acquire REST commit leases only on retries - #11147

Draft
leaves12138 wants to merge 9 commits into
apache:masterfrom
leaves12138:codex/rest-commit-lease-retry
Draft

leaves12138 wants to merge 9 commits into
apache:masterfrom
leaves12138:codex/rest-commit-lease-retry

Conversation

@leaves12138

@leaves12138 leaves12138 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Rename rest.commit.acquire-lock to rest.commit.retry-acquire-lock. When enabled, the first REST publication attempt uses the catalog's expected-head check without acquiring a lease. A retry acquires the existing lease before checking the latest snapshot and preparing publication. The server capability still uses rest.commit.lock-enabled.

Pass firstCommit to the bound lock for ordinary commits, manifest compaction, and Data Evolution row-ID reassignment. Snapshot publication reuses the enclosing lock scope. Locks that require protection for filesystem publication continue to acquire it on every attempt.

The explicit release endpoint and its client are covered by #11146. Both PRs target master and can merge independently.

Verification

@leaves12138
leaves12138 marked this pull request as draft November 13, 2026 12:47
@leaves12138
leaves12138 marked this pull request as ready for review November 13, 2026 16:09
@leaves12138
leaves12138 marked this pull request as draft November 13, 2026 17:09
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