Orphaned FTS index generations accumulate in episode.lance/_indices/ across restarts

Open
#558 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
databases

Research direction

The bug sits in how the episode.lance index directory is managed across rebuilds, so start with the everos cascade rebuild path and the startup sweep that triggers it. Check where the old index generations get dropped or replaced, and whether optimize/cleanup is called afterwards. Done means only the live generation remains in _indices/ after a rebuild, confirmed by listing that directory before and after.

Written by the indexing model from the issue text.

Description

everos 1.5.1, lancedb 0.34.0 (pinned), Python 3.12 via uv tool install everos, Linux x86_64.

Observed

After a handful of server restarts plus an everos cascade rebuild, episode.lance/_indices/ accumulates multiple index-UUID directories (6 observed) while table.list_indices() reports a single episode_tokens_idx. Optimize/prune does not reclaim the stale generations, so the index directory grows with each rebuild cycle.

Repro

  1. Start/stop the server a few times (everos server start, systemd restart, etc.)
  2. Run everos cascade rebuild (or let the startup sweep rebuild)
  3. ls ~/.everos/.index/lancedb/episode.lance/_indices/ → one directory per historical generation

Expected

Dropped/replaced index generations are garbage-collected after rebuild/optimize, leaving only the live generation in _indices/.

Notes

Search correctness was never affected in our testing (BM25 via the API resolves the live index fine from fresh connections); this is disk-hygiene / index-UUID-count growth only. Possibly related to the index-merge gap tracked in lancedb/lancedb#2193, lancedb/lancedb#3177 and lance-format/lance#6711.

Dominant language
Python
Stars
13.3k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
57

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EverMind-AI/EverOS

All issues in EverMind-AI/EverOS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.