Skip to content

v2.3: Refactors AccountsBackgroundService if a snapshot request was not handled (backport of #6418)#6451

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

v2.3: Refactors AccountsBackgroundService if a snapshot request was not handled (backport of #6418)#6451
brooksprumo merged 1 commit intov2.3from
mergify/bp/v2.3/pr-6418

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Jun 6, 2025

Problem

The main problem is #6295. As a means to that end, we need to ensure we don't clean past any enqueued snapshot request's slot.

Since we call flush and clean in multiple branches (if a snapshot request is not handled), it's not straight forward to share a "max cleanable slot" between them all.

Summary of Changes

Refactor the AccountsBackgroundService code, when a snapshot request was not handled, to make it possible to share a "max cleanable slot".

Justification to Backport

This is required as part of the patches to fix #6295.


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

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.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 6, 2025

Codecov Report

Attention: Patch coverage is 76.92308% with 6 lines in your changes missing coverage. Please review.

Project coverage is 82.8%. Comparing base (5cd6945) to head (ed21f9d).

Additional details and impacted files
@@           Coverage Diff           @@
##             v2.3    #6451   +/-   ##
=======================================
  Coverage    82.8%    82.8%           
=======================================
  Files         848      848           
  Lines      379479   379490   +11     
=======================================
+ Hits       314504   314523   +19     
+ Misses      64975    64967    -8     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo
Copy link
Copy Markdown

@Mergifyio rebase

@mergify
Copy link
Copy Markdown
Author

mergify bot commented Jun 9, 2025

rebase

✅ Branch has been successfully rebased

@brooksprumo brooksprumo force-pushed the mergify/bp/v2.3/pr-6418 branch from e11bec4 to ed21f9d Compare June 9, 2025 15:42
@brooksprumo brooksprumo merged commit e9720dc into v2.3 Jun 9, 2025
46 checks passed
@brooksprumo brooksprumo deleted the mergify/bp/v2.3/pr-6418 branch June 9, 2025 16:45
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.

4 participants