Skip to content

docs: reconcile DynamoDB snapshot seal implementation status - #1287

Merged
bootjp merged 1 commit into
mainfrom
feature/dynamodb-snapshot-seal-status
Oct 22, 2026
Merged

bootjp merged 1 commit into
mainfrom
feature/dynamodb-snapshot-seal-status

Conversation

@bootjp

@bootjp bootjp commented Oct 22, 2026

Copy link
Copy Markdown
Owner

Change

The snapshot-seal design still says Proposed and asks to keep #1259 open, although #1259 merged the protocol on 2026-10-11. Rename the document to Partial and record the implementation, entry-point wiring, existing regressions and remaining acceptance work.

This is a documentation-only change. It does not add another seal implementation. The audit is against main 429f5ee7 and #1259's final head 30dc3498 / merge b6c6c917.

Evidence

  • Map invariants 1-4 and every item-writing entry point to existing source and tests.
  • Verify Fix DynamoDB lost appends under concurrent writes #1259's successful DynamoDB append and ten-type Jepsen steps in run 38128904501. The run used local mode and an HTTP leader map.
  • Re-run focused seal, OCC, follower/promotion/demotion, dedup, cleanup, snapshot and logical-backup tests with the race detector across ./adapter, ./kv and ./internal/backup: all pass.
  • Check all 40 local Markdown source links and git diff --check: pass.

Still Unverified

Real-Raft elections during the delayed-write schedule, the same schedule across two data groups, seal-specific snapshot/restart recovery, follower-ingress Jepsen without an HTTP leader map, and contention/collision benchmarks remain acceptance gaps. Existing in-memory leader-switch/two-table tests and Redis benchmarks do not prove those requirements. Current routing co-locates one table; arbitrary within-table sharding is not claimed.

Author: bootjp

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a0396a63-021b-417e-9839-66b97eba37e7
📥 Commits

Reviewing files that changed from the base of the PR and between 429f5ee and f697511.

📒 Files selected for processing: 2
  • docs/design/2026_10_11_partial_dynamodb_snapshot_seal.md
  • docs/design/2026_10_11_proposed_dynamodb_snapshot_seal.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@bootjp

bootjp commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T17:31:23.310409Z f697511 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-22T17:27:53.495960Z f697511 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: f697511a60

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: f697511a60

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bootjp
bootjp marked this pull request as ready for review October 22, 2026 17:26
@bootjp
bootjp merged commit 9a20fbb into main Oct 22, 2026
10 checks passed
@bootjp
bootjp deleted the feature/dynamodb-snapshot-seal-status branch October 22, 2026 17:27

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f697511a60

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

| Legacy item migration | [`resolveLegacyMigrationTarget` and `migrateLegacyItem`](../../adapter/dynamodb_migration.go) use the target schema primary key for the local lock, seal the target item, and attach that seal to `ReadKeys`. |

Generation changes are checked after sealing by `verifySealedTableGeneration`.
The single-item retry loop derives a new seal on retry; the transaction loop calls `refreshTransactWriteLocks` to rebuild locks, generations, and seals.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Qualify which single-item retries derive a new seal

This is not true for an ambiguous retry on the enabled one-phase dedup path: retryItemWriteWithGenerationDedup invokes itemWriteReuseAttempt, which retains pending.readTimestamp and the original sealed StartTS, allocating only a new commit timestamp without calling sealedItemReadTimestamp. A new seal is obtained only when the write is first planned or when the pending plan is discarded and recomputed, so the audit currently misdocuments a key part of the dedup protocol.

Useful? React with 👍 / 👎.

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.

1 participant