Skip to content

fix(table): eviction never starts for sourcedFrom and eviction-only tables#560

Open
ldt1996 wants to merge 3 commits into
mainfrom
fix/ttl-eviction-scanner
Open

fix(table): eviction never starts for sourcedFrom and eviction-only tables#560
ldt1996 wants to merge 3 commits into
mainfrom
fix/ttl-eviction-scanner

Conversation

@ldt1996
Copy link
Copy Markdown
Contributor

@ldt1996 ldt1996 commented May 16, 2026

closes #559

closes #558

Found this while testing v4 to v5 in place upgrade on my cluster. Migration
went ok for the non-blob tables but the 2 blob tables came up short (eg 14672 vs 25611, 13795 vs 19651).

Replication ENOENTs from v4 peers pointed at blob files that no longer existed. When looking into it, the records referencing those "dead" blobs hadn't aged out either, and 90%+ were past their exp time, oldest expired 9 days ago. The affected tables showed "expiration": "NaNs" (see more in the issues tagged above).

Reproduced locally via the unit test ( caching.test.js, fails on main, passes here). Also
confirmed end-to-end on a daemon repro against harperdb@4.7.28.

@ldt1996 ldt1996 requested a review from a team as a code owner May 16, 2026 10:06
@ldt1996 ldt1996 changed the title fix(table): arm eviction scanner for sourcedFrom and eviction-only co… fix(table): arm eviction scanner for sourcedFrom and eviction-only config May 16, 2026
@ldt1996 ldt1996 added the patch label May 16, 2026
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented May 16, 2026

Reviewed; no blockers found.

@ldt1996 ldt1996 changed the title fix(table): arm eviction scanner for sourcedFrom and eviction-only config fix(table): eviction never starts for sourcedFrom and eviction-only tables May 16, 2026
Copy link
Copy Markdown
Member

@kriszyp kriszyp left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sourcedFrom tables never evict records @table(eviction: N) disables eviction

2 participants