Repository navigation
Retry endpoint lookup on CompactedVersionConflict - #8814
Merged
Amaury Chamayou (achamayou) merged 2 commits intoNov 20, 2026
Merged
Conversation
Include KV-backed endpoint lookup in the frontend retry scope. Cover compaction-induced lookup conflicts, final-attempt recovery, and retry exhaustion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ix-frontend-retry-scope-issue
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review reports no active issues with the endpoint-lookup retry change.
No open issues 🎉
What changed in this PR
Moves KV-backed endpoint lookup into the frontend’s existing retry scope so CompactedVersionConflict triggers bounded request retries rather than escaping. This addresses the lookup gap identified alongside #8799’s rollback protection.
Changes:
- Includes endpoint lookup in the same retry scope as handler execution.
- Adds compaction-based regression coverage for fresh transactions, final-attempt success, retry exhaustion, and response-header cleanup.
- Documents the retry behavior and adds a release change description.
Custom instructions used: Repository review and change-description guidance supplied in the review context; no additional instruction files were loaded.
| File | Description |
|---|---|
src/node/rpc/test/frontend_test.cpp |
Adds regression coverage for lookup conflicts and retry cleanup. |
src/node/rpc/frontend.h |
Moves endpoint lookup inside the existing retry exception handler. |
doc/build_apps/kv/kv_how_to.rst |
Explains fresh-transaction retries for compaction conflicts. |
.changes/frontend-lookup-retry.fixed.md |
Records the lookup retry fix and links to transaction documentation. |
Review effort: Balanced
Amaury Chamayou (achamayou)
approved these changes
Nov 20, 2026
Amaury Chamayou (achamayou)
deleted the
agents/fix-frontend-retry-scope-issue
branch
November 20, 2026 14:35
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.
KV-backed endpoint lookup can throw
CompactedVersionConflict, but currently runs outside the frontend retry scope, allowing the exception to escape instead of retrying the request. Include lookup in that scope so it receives the same bounded retries as handler execution.Addresses the pre-existing gap identified in #8799 (comment). The regression exercises real compaction-induced conflicts rather than relying on rollback behavior.
Validation
The regression reproduces an abort before the fix and passes afterward, covering fresh-transaction recovery, success on the final attempt, retry exhaustion, and response-header cleanup. Independent reviews found no significant issues.
The frontend target rebuilt and its full unit suite passed after merging latest main. Repository checks and the warning-clean Sphinx build passed before that merge.