Skip to content

Document Routes: support delegation of ETag Compare-And-Swap to implementation - #108

Open
milt wants to merge 4 commits into
masterfrom
etag_cas
Open

Document Routes: support delegation of ETag Compare-And-Swap to implementation#108
milt wants to merge 4 commits into
masterfrom
etag_cas

Conversation

@milt

@milt milt commented Aug 10, 2026

Copy link
Copy Markdown
Member

LRS implementations should be able to perform compare-and-swap document operations using ETags.

This PR takes the work in #106 and extends it to all applicable document actions, and additionally adds normalized preconditions to the pedestal context for the impl to use.

Note that this does NOT disable the existing precondition checks used by the memory LRS and though these do not interfere with implementations doing it themselves it is extra work. A further needed improvement is to allow implementations to signal to the lib that they are capable of CAS and do not need the interceptors turned on.

This is now implemented, and SQL LRS is using successfully

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