Skip to content

fix(overlayfs): rename negcache_eviction → negcache_admission (matching admission-cap policy)#256

Merged
khaines merged 1 commit into
mainfrom
fix/245-negcache-admission-cap
Jun 30, 2026
Merged

fix(overlayfs): rename negcache_eviction → negcache_admission (matching admission-cap policy)#256
khaines merged 1 commit into
mainfrom
fix/245-negcache-admission-cap

Conversation

@khaines

@khaines khaines commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Addresses #245

Aligns test naming and docs with actual negative-cache behavior:

The implementation is an admission-cap, not eviction:

  • When negCacheCount >= maxNegCacheEntries, new misses skip caching (LoadOrStore gates)
  • Oldest entries are NOT evicted — they simply remain (bounded by maxNegCacheEntries)

Changes:

  1. negcache_eviction_test.go renamed → negcache_admission_test.go
  2. docs/engineering/design/test-gap-analysis.md:72 updated:
    • "eviction of oldest" → "admission-cap policy (at capacity, new misses skip caching)"

CI: All tests pass ✅

Check Status
Lint
Build
Test
Helm Lint
K8s Manifest Lint
Docker Build
E2E Tests

…h admission-cap policy

The negative cache implements an admission cap (reject new entries when full),
not LRU eviction of oldest entries.

Changes:
- Rename test file from negcache_eviction_test.go to negcache_admission_test.go
- Update docs/engineering/design/test-gap-analysis.md item #13 to accurately
  describe "admission-cap" instead of "eviction"

This aligns documentation and test naming with the actual behavior: bounded
growth via load-or-store gate, no eviction of oldest entries.
@khaines khaines merged commit 7dac922 into main Jun 30, 2026
7 checks passed
@khaines khaines deleted the fix/245-negcache-admission-cap branch June 30, 2026 17:36
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.

1 participant