Repository navigation
docs: reconcile DynamoDB snapshot seal implementation status - #1287
Conversation
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
💡 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. |
There was a problem hiding this comment.
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 👍 / 👎.
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
429f5ee7and #1259's final head30dc3498/ mergeb6c6c917.Evidence
./adapter,./kvand./internal/backup: all pass.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