Repository navigation
handle absent keys in ssi transactions - #18
Conversation
Signed-off-by: Robert Landers <landers.robert@gmail.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Record absent-key reads and dependencies effects/context.go |
Successful reads emit NOOP effects when snapshots have empty frontiers. Transactional effects use blocking subscription setup and include subscription tips in dependencies. |
Verify absent-key transaction behavior effects/ssi_absence_test.go |
Tests cover absent-key read dependencies, transaction binds, concurrent key creation, and write-skew aborts for absent, existing, and deleted keys. |
Verify replicated write-skew behavior beacon/ssi_absence_test.go |
A clustered-runtime test checks replication, conflicting transactions on absent keys, resulting values, and a later successful transaction. |
Discovery Recovery
| Layer / File(s) | Summary |
|---|---|
Test recovery of a missed policy write beacon/discovery_recovery_test.go |
The test writes a policy while peers are disconnected, then checks that anti-entropy and reconvergence deliver it after the peers connect. |
Horizon Logging
| Layer / File(s) | Summary |
|---|---|
Capture group size under lock effects/horizon.go |
HorizonSet.Add captures the target group’s entry count before unlocking and uses that value in the debug log. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Possibly related PRs
- swytchdb/engine#16: Adds the SSI transaction snapshot and
Contextread paths that the absent-key handling changes extend.
Merge Risk: 
Minimal · up to 062fa
-
No merge-blocking issue is established; the change is mergeable after normal checks.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 5 functions across 5 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit reads where keys are bare,
And leaves a NOOP marker there.
Two peers reconnect; the value flows,
While skewed transactions meet their woes.
The horizon count stays safely in tow.
Comment @coderabbitai help to get the list of available commands.
An optimization causes an SSI write-skew violation for absent keys.
Summary by CodeRabbit