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

オープン
#558 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
databases

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
13.3k
フォーク
926
平均マージ
19時間 14分
マージ済み PR(30日)
27

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EverMind-AI/EverOS のほかの issue

EverMind-AI/EverOS の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。