Repository navigation
Populate committedVersion on automatic idempotency replay path (#13038) - #13294
Merged
spraza merged 1 commit intoJun 1, 2026
Merged
Conversation
gxglass
approved these changes
May 28, 2026
…#13038) Backport of apple#13038 to release-7.4. When a commit request returns commit_unknown_result for a transaction carrying an idempotency id, determineCommitStatus reads the system keyspace and may discover the original commit succeeded. In that case we reconstruct the versionstamp from CommitResult but previously forgot to record the commit version back on the TransactionState, so callers observing getCommittedVersion() after success would see invalidVersion. Mirror the normal-path assignment on the replay branch, and add a regression guard in AutomaticIdempotencyWorkload asserting every successful commit reports a non-invalid version. Adapted to the actor-based workload still in use on 7.4. Fixes apple#12582.
PierreZ
force-pushed
the
fix/idempotency-commit-version-12582-7.4
branch
from
May 29, 2026 06:47
44bdb6a to
6f35897
Compare
spraza
approved these changes
May 29, 2026
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Contributor
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
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.
Backport of #13038 to release-7.4.
When a commit request returns commit_unknown_result for a transaction carrying an idempotency id, determineCommitStatus reads the system keyspace and may discover the original commit succeeded. In that case we reconstruct the versionstamp from CommitResult but previously forgot to record the commit version back on the TransactionState, so callers observing getCommittedVersion() after success would see invalidVersion.
Mirror the normal-path assignment on the replay branch, and add a regression guard in AutomaticIdempotencyWorkload asserting every successful commit reports a non-invalid version. Adapted to the actor-based workload still in use on 7.4.
Tested locally by running AutomaticIdempotencyWorkload.