Skip to content

Rebuild evicted log indexes#525

Merged
arukompas merged 3 commits into
mainfrom
fix-index-cache-eviction
Jun 11, 2026
Merged

Rebuild evicted log indexes#525
arukompas merged 3 commits into
mainfrom
fix-index-cache-eviction

Conversation

@arukompas

@arukompas arukompas commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • force indexed readers to rescan when file metadata survives but the index cache is gone
  • detect index chunks evicted from cache (while index metadata survives) lazily at read time — both rotated chunks and the current chunk — flag the index via rebuild_required metadata, and force a full rebuild on the next scan
  • invalidate the memoized current chunk when index metadata is reloaded, so a forced rebuild doesn't double-count entries from the stale chunk definition
  • add regression tests for evicted search index metadata/chunks, single evicted rotated chunks, and an evicted current chunk

Tests

  • vendor/bin/pint --dirty
  • vendor/bin/pest

@arukompas arukompas self-assigned this Jun 11, 2026
@arukompas arukompas merged commit bdf9311 into main Jun 11, 2026
159 of 170 checks passed
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