Skip to content

v2.3: Do not clean past enqueued snapshot request in AccountsBackgroundService (backport of #6437)#6497

Merged
brooksprumo merged 1 commit intov2.3from
mergify/bp/v2.3/pr-6437
Jun 11, 2025
Merged

v2.3: Do not clean past enqueued snapshot request in AccountsBackgroundService (backport of #6437)#6497
brooksprumo merged 1 commit intov2.3from
mergify/bp/v2.3/pr-6437

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Jun 10, 2025

Problem

Please see #6295.

Summary of Changes

Do not clean past enqueued snapshot request.

Justification to Backport

Panics are being reported on v2.2 (and v2.3). So we need to backport if we want to fix the issue.


This is an automatic backport of pull request #6437 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner June 10, 2025 21:24
}

/// Returns the slot of the next snapshot request to be handled
fn peek_next_snapshot_request_slot(&self) -> Option<Slot> {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

i was going to comment about "peek" usually being side-effect free, but then i looked under the hood and realized it's all side-effects down there and we're just keeping the status quo

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

"destructive peek" 🙃

Copy link
Copy Markdown

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm.

BTW: I have reproduced the failure on my testnode and verified that applying this patch fix the issue.

@brooksprumo brooksprumo merged commit 14a02a2 into v2.3 Jun 11, 2025
46 checks passed
@brooksprumo brooksprumo deleted the mergify/bp/v2.3/pr-6437 branch June 11, 2025 18:06
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.

5 participants