Skip to content

Retry endpoint lookup on CompactedVersionConflict - #8814

Merged
Amaury Chamayou (achamayou) merged 2 commits into
mainfrom
agents/fix-frontend-retry-scope-issue
Nov 20, 2026
Merged

Amaury Chamayou (achamayou) merged 2 commits into
mainfrom
agents/fix-frontend-retry-scope-issue

Conversation

@eddyashton

Copy link
Copy Markdown
Member

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.

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>
@eddyashton
Eddy Ashton (eddyashton) requested a review from a team as a code owner November 20, 2026 14:04
Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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

@achamayou
Amaury Chamayou (achamayou) added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 6b89738 Nov 20, 2026
15 checks passed
@achamayou
Amaury Chamayou (achamayou) deleted the agents/fix-frontend-retry-scope-issue branch November 20, 2026 14:35
@eddyashton Eddy Ashton (eddyashton) added the 7.x-todo PRs which should be backported to 7.x label Nov 24, 2026 — with GitHub Codespaces
@achamayou Amaury Chamayou (achamayou) removed the 7.x-todo PRs which should be backported to 7.x label Nov 24, 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.

3 participants