fix(loader): transfer writes the tenant DuckDB under tenants/<tenant>/#201
Merged
Conversation
escurel-server keeps each tenant's DuckDB at `<data_dir>/tenants/<tenant>/ escurel.duckdb` (config.rs), and the FsStore keys blobs/overlays under the same prefix. But `transfer` opened the DB at `<data_dir>/escurel.duckdb` (root) — so merging into a real escurel data dir wrote the rows to a stray root DB the server never reads, while blobs/overlays correctly landed under tenants/<tenant>/. The capstone test used a self-consistent (root) layout, so it didn't catch this. Open the DB at `to/tenants/<tenant>/escurel.duckdb` (create the dir), matching the server. Capstone test updated to assert the tenant-subdir path. Found while transferring a 203-doc Gemini corpus into the herkules tenant: the server saw 0 new instances until the path was corrected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
escurel-server keeps each tenant DB at
<data_dir>/tenants/<tenant>/escurel.duckdb, buttransferopened it at the data-dir root — so rows landed in a stray DB the server never reads (blobs/overlays were correct). Fixed to nest undertenants/<tenant>/; capstone test updated. Found transferring a 203-doc Gemini corpus into the herkules tenant.🤖 Generated with Claude Code