Skip to content

Run clean based on time, not slots#6397

Merged
brooksprumo merged 2 commits intoanza-xyz:masterfrom
brooksprumo:abs/last-cleaned-time
Jun 5, 2025
Merged

Run clean based on time, not slots#6397
brooksprumo merged 2 commits intoanza-xyz:masterfrom
brooksprumo:abs/last-cleaned-time

Conversation

@brooksprumo
Copy link

@brooksprumo brooksprumo commented Jun 3, 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.

Once we track the highest cleanable slot, we'll want to use that for setting how much to clean. This will not map to the current model where we always clean up to the current rooted bank's slot. As such, the "clean after 100 slots" check won't really make sense.

Summary of Changes

Instead, clean after a set amount of time, not slots.

@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.8%. Comparing base (75ad0c8) to head (a6b1fdd).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #6397     +/-   ##
=========================================
- Coverage    82.8%    82.8%   -0.1%     
=========================================
  Files         848      848             
  Lines      379482   379483      +1     
=========================================
- Hits       314521   314326    -195     
- Misses      64961    65157    +196     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo brooksprumo force-pushed the abs/last-cleaned-time branch from 7d0a399 to 32cbabb Compare June 4, 2025 17:03
@brooksprumo brooksprumo self-assigned this Jun 4, 2025
@brooksprumo brooksprumo force-pushed the abs/last-cleaned-time branch from 32cbabb to 9a17d03 Compare June 4, 2025 17:38
@brooksprumo brooksprumo requested a review from HaoranYi June 4, 2025 21:32
Copy link

@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. thanks!

Copy link

@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 2c08c33 into anza-xyz:master Jun 5, 2025
47 checks passed
@brooksprumo brooksprumo deleted the abs/last-cleaned-time branch June 5, 2025 12:38
fkouteib pushed a commit to fkouteib/agave that referenced this pull request Jun 7, 2025
mircea-c pushed a commit to mircea-c/agave that referenced this pull request Jun 12, 2025
mircea-c added a commit to mircea-c/agave that referenced this pull request Jun 12, 2025
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