Skip to content

[release/7.x] Cherry pick: Retry endpoint lookup on CompactedVersionConflict (#8814) - #8837

Merged
Amaury Chamayou (achamayou) merged 1 commit into
release/7.xfrom
agents/backport-8814-7.x
Nov 24, 2026
Merged

Amaury Chamayou (achamayou) merged 1 commit into
release/7.xfrom
agents/backport-8814-7.x

Conversation

@eddyashton

Copy link
Copy Markdown
Member

Backports #8814 to release/7.x so compaction conflicts during KV-backed endpoint lookup retry the request rather than escaping the frontend retry scope.

Backport and validation

Single unchanged git cherry-pick -x of squash-merged commit 6b8973811ae9a14ae6e15cecde1c589705e13651; no release-specific fixups.

The backport checker, frontend unit suite, repository checks, and warning-clean Sphinx build passed. LTS live and ledger compatibility passed on retry after an initial commit timeout accompanied by slow ledger filesystem syncs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
(cherry picked from commit 6b89738)
@eddyashton
Eddy Ashton (eddyashton) requested a review from a team as a code owner November 24, 2026 15:56
@eddyashton Eddy Ashton (eddyashton) added the 7.x-backport Highlight PRs targeting the 7.x branch label Nov 24, 2026
Copilot AI balanced review requested due to automatic review settings November 24, 2026 15:56

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

No active review issues block the endpoint-lookup retry backport.

No open issues 🎉

What changed in this PR

Backports #8814 to release/7.x, placing KV-backed endpoint lookup inside the frontend’s existing bounded retry scope so compaction conflicts retry the request rather than escape.

Changes:

  • Includes endpoint lookup in retry handling with a fresh transaction.
  • Adds regression coverage for recovery, final-attempt success, retry exhaustion, and response-header cleanup.
  • Documents the retry behavior and adds a release note.

Custom instructions used

Applied the guidance supplied in the review context for .github/copilot-instructions.md, .github/instructions/reviewing.instructions.md, and .github/instructions/changelog.instructions.md; local copies were unavailable.

File Description
src/​node/​rpc/​test/​frontend_test.cpp Adds regression tests using real compaction-induced lookup conflicts.
src/​node/​rpc/​frontend.h Moves endpoint lookup inside the existing retry exception scope.
doc/​build_apps/​kv/​kv_how_to.rst Explains fresh-transaction retries for lookup and handler compaction conflicts.
.changes/​frontend-lookup-retry.fixed.md Records the fix and links to transaction semantics.

Review effort: Balanced

@achamayou
Amaury Chamayou (achamayou) added this pull request to the merge queue Nov 24, 2026
Merged via the queue into release/7.x with commit b1b00eb Nov 24, 2026
21 checks passed
@achamayou
Amaury Chamayou (achamayou) deleted the agents/backport-8814-7.x branch November 24, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.x-backport Highlight PRs targeting the 7.x branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants