Repository navigation
fix(transactions): harden Azure Table transactional state storage - #10376
Merged
ReubenBond merged 1 commit intoAug 9, 2026
Merged
ReubenBond merged 1 commit into
ReubenBond merged 1 commit into
Conversation
ReubenBond
force-pushed
the
reubenbond-fix-azure-transaction-conflicts
branch
3 times, most recently
from
August 9, 2026 00:13
7ec3570 to
4ac6249
Compare
ReubenBond
force-pushed
the
reubenbond-fix-azure-transaction-conflicts
branch
6 times, most recently
from
August 9, 2026 19:18
18ebcca to
e213d9d
Compare
Fence paginated transactional state loads after boundary-aware rollout, retain legacy torn-read behavior during rolling upgrades, require reload after failed stores, and include the synchronizer key in every physical mutation batch. Co-authored-by: Copilot App <[email protected]> Copilot-Session: ee2af1fe-0eb6-41c4-a920-2ca59ba575e4
ReubenBond
force-pushed
the
reubenbond-fix-azure-transaction-conflicts
branch
from
August 9, 2026 22:31
e213d9d to
5f387cc
Compare
This was referenced Aug 28, 2026
Merged
This was referenced Aug 31, 2026
Merged
This was referenced Sep 7, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Azure Table transactional state storage mutates its cached key and prepared-state records before submitting a transaction, so a failed write could leave the storage instance unsafe to reuse. A paginated entity query can also cross a concurrent multi-batch write because continuation pages are independent requests, while conflict failures previously exposed limited context.
Require a successful reload before reuse after a failed mutating store, preserve strict ETag conflict detection, and emit payload-free operation diagnostics with the failed action details supplied by Azure Table Storage. Load queries the key and state rows together. The normal single-page case returns the snapshot in one storage operation. Every physical write batch atomically upserts
!and~boundary rows with the same fresh fence value; their keys sort before and after all transactional rows, so matching values from a completed paginated query prove that no boundary-aware batch committed while its pages were read. Torn boundary values retry up to a bound without an additional key read.Legacy partitions without boundary rows retain the previous one-query behavior. During a rolling upgrade, older writers do not advance existing boundary rows, so paginated torn reads remain intentionally possible until every writer is upgraded; the stronger boundary guarantee applies once the cluster has fully transitioned.
Each physical batch still conditionally advances the key and now reserves two boundary slots, including the final partial batch. A fresh key carries valid empty prior metadata before any split prepare batch can persist it, so a failure after the first physical batch leaves a recoverable intermediate snapshot without prematurely publishing incoming commit metadata or sequence position. Deterministic coverage exercises one-query loads, stable and torn boundary pagination, legacy no-boundary acceptance, bounded churn, fresh split recovery, per-batch fence uniqueness, no-change conflicts, stale-writer recovery, failed-store reuse rejection, and diagnostic redaction.
Azure entity group transactions atomically mutate up to 100 entities sharing a partition, and the transaction batch protocol plus
TableTransactionActionTypeexpose mutation actions but no transactional read batch. Query Entities can return a single strongly consistent response, but larger or slower queries resume through subsequent requests under the documented query timeout and pagination semantics. Once all writers maintain the boundary rows, paginated reads become self-validating without another storage request.Microsoft Reviewers: Open in CodeFlow