Repository navigation
v1.7.3: a row and its outbox records in one commit - #7
Merged
Merged
Conversation
put_if_version(key, value, version, outbox=[records]) commits the row and the records in one atomic write: the records are pending if and only if the write COMMITTED. A store without an outbox refuses records before writing anything. - e2a.port_contract.check_transactional_outbox (9 scenarios, with a race) - capability transactional_outbox; reference InMemoryTransactionalStore(outbox=) - e2a-adapters: DynamoDB (TransactWriteItems), Firestore (WriteBatch with the row's precondition), Cosmos DB (transactional batch on the row's partition); CasBackend.commit; from_config builds the matching outbox store - version 1.7.3 (Python, adapters, Java), README, CHANGELOG Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4
Several sweepers marking one record made Firestore's lock-based transactions abort each other until the SDK gave up with ValueError (seen in CI on the contract race). mark_published now deletes the record (precondition: exists) and advances the fence (precondition: unchanged since read) in one atomic batch, retrying only when the fence moved. Exactly one sweeper wins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.