Repository navigation
docs(cache): correct ADR 040 on segment re-observation and deny-listed eviction candidates - #2275
Merged
Merged
Conversation
…d eviction candidates Only fill admission and a plan's Probation -> Main promotion set a segment, so a blob that a restart reset stays Main until it is evicted. Eviction candidates drop pinned and probe-held hashes but keep deny-listed ones, even pinned (deny wins over pin). Align ADR 040, the policy module docs, and the engine's EvictionCandidates docs. Closes #2267 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Coverage OverviewLanguages: Rust Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit fad5fa9 in the Show a line coverage summary of the most impacted files.
Updated |
…on 7 A deny-listed hash is always evictable, but a probe-hold keeps it out of cache-pressure eviction until the hold expires; CacheEngine::evict reclaims it regardless. Spell this out in criterion 7 so it agrees with boundary rule 1 and the eviction_candidates docs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
set_segmentruns only on fill admission (engine.rspull-through fill andadmit_bao_stream) and on a plan'sProbation → Mainpromotion, so a blob cached before a restart staysMainuntil evicted; only the frequency estimator rebuilds from traffic. The bullet now says so.policymodule docs (EvictionContext::candidates,EvictionPolicy::plan) said eviction candidates are filtered of deny-listed hashes and that the deny set is never evicted.eviction_candidatesdeliberately keeps deny-listed hashes, even pinned ones, andrelease_for_evictionreleases them (deny wins over pin). The docs now describe that, including that a probe-held hash stays excluded even when deny-listed.CacheEngine::evictreclaims it regardless. This keeps the criterion consistent with boundary rule 1 and theeviction_candidatesdocs.EvictionCandidates/eviction_candidatesdocs inengine.rsgain the same deny carve-out.node_origin_pullflakes) is tracked by flaky(test): node_origin_pull::node_origin_not_found_refusal_does_not_tar_upstream fails ~50% since #2248 #2268.Test plan
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-itemscargo fmt -- --check,cargo clippy -p decdn-cache --all-targets -- -D warningsCloses #2267
🤖 Generated with Claude Code