mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
With floci.services.dynamodb.transaction-conflicts-enabled on, a TransactWriteItems keeps its items busy from the moment its conditions hold until 10 ms after it commits, and answers when that time is up. While an item is busy, a PutItem, UpdateItem, DeleteItem or single-item PartiQL write on it fails with TransactionConflictException, and another TransactWriteItems or a TransactGetItems that reaches it is cancelled with the reason TransactionConflict, as the developer guide describes. GetItem, Query, Scan and BatchWriteItem are unaffected, and a transaction that is cancelled holds nothing. The busy mark is a deadline kept beside the item, so no item lock is held during the wait. Off, the default, transactions keep serializing on their item locks as before. The switch is refused at startup on the local backend. Closes #4523