Skip to content

Populate committedVersion on automatic idempotency replay path (#13038) - #13294

Merged
spraza merged 1 commit into
apple:release-7.4from
PierreZ:fix/idempotency-commit-version-12582-7.4
Jun 1, 2026
Merged

spraza merged 1 commit into
apple:release-7.4from
PierreZ:fix/idempotency-commit-version-12582-7.4

Conversation

@PierreZ

@PierreZ PierreZ commented May 28, 2026

Copy link
Copy Markdown
Contributor

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.

…#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
PierreZ force-pushed the fix/idempotency-commit-version-12582-7.4 branch from 44bdb6a to 6f35897 Compare May 29, 2026 06:47
@spraza spraza closed this May 29, 2026
@spraza spraza reopened this May 29, 2026
@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 6f35897
  • Duration 0:37:15
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 6f35897
  • Duration 0:44:47
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux CentOS 7

  • Commit ID: 6f35897
  • Duration 0:46:27
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS Ventura 13.x

  • Commit ID: 6f35897
  • Duration 0:51:11
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 6f35897
  • Duration 0:55:44
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 6f35897
  • Duration 1:04:25
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x

  • Commit ID: 6f35897
  • Duration 1:02:50
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@spraza
spraza merged commit 946239e into apple:release-7.4 Jun 1, 2026
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.

4 participants