Skip to content

Do not clean past enqueued snapshot request in AccountsBackgroundService#6437

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:abs/last-cleaned-block-height-assert2
Jun 10, 2025
Merged

Do not clean past enqueued snapshot request in AccountsBackgroundService#6437
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:abs/last-cleaned-block-height-assert2

Conversation

@brooksprumo
Copy link
Copy Markdown

@brooksprumo brooksprumo commented Jun 5, 2025

Problem

Please see #6295.

Summary of Changes

Do not clean past enqueued snapshot request.

Fixes #6295

Note, needs to be backported to v2.3.

@brooksprumo brooksprumo self-assigned this Jun 5, 2025
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 51.61290% with 15 lines in your changes missing coverage. Please review.

Project coverage is 82.8%. Comparing base (c098edd) to head (e0c1ab0).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6437   +/-   ##
=======================================
  Coverage    82.8%    82.8%           
=======================================
  Files         848      848           
  Lines      379479   379518   +39     
=======================================
+ Hits       314303   314367   +64     
+ Misses      65176    65151   -25     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo brooksprumo marked this pull request as ready for review June 6, 2025 13:41
// We reuse `get_next_snapshot_request()` here, since it already implements all the logic
// for getting the highest priority request, *AND* we leverage its test coverage.
// Additionally, since `get_next_snapshot_request()` drops old requests, we might get to
// proactively clean up old banks earlier as well!
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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.

@mergify
Copy link
Copy Markdown

mergify bot commented Jun 6, 2025

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

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

@brooksprumo brooksprumo merged commit f8e81a9 into anza-xyz:master Jun 10, 2025
48 checks passed
@brooksprumo brooksprumo deleted the abs/last-cleaned-block-height-assert2 branch June 10, 2025 21:24
mergify bot pushed a commit that referenced this pull request Jun 10, 2025
brooksprumo added a commit that referenced this pull request Jun 11, 2025
…ndService (backport of #6437) (#6497)

Do not clean past enqueued snapshot request in AccountsBackgroundService (#6437)

(cherry picked from commit f8e81a9)

Co-authored-by: Brooks <brooks@anza.xyz>
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.

AccountsBackgroundService assert fails for last_cleaned_block_height <= snapshot_block_height

5 participants