Repository navigation
Keep what a container session indexes in the state directory - #21
Merged
Merged
Conversation
A reindex inside a container wrote into the image's own index directory, in the container's writable layer: it was gone when the container was. The manual said it went to the state volume. An image now names the index it ships. The session's own index is then a second one, beside its other state, read before the shipped one and the only one written; the indexers learn the place from the environment. The startup check asks the same layered lookup, so a corpus indexed by the user is no longer reported as missing.
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.
A
/reindexinside a container wrote into the image's index directory, in the container's writable layer, and was lost with the container; the manual said it went to the state volume.The harness image now names the index it ships (
SPEAR_SHIPPED_DB_PATH). The session's own index lives in the state directory, is read before the shipped one and is the only one written.Checked in a container: a small unknown tree is indexed, a second container finds its 3 chunks, and the shipped corpus still answers (4260 chunks). Unit tests for the layered lookup; the suite passes.