mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-29 01:17:56 -05:00
Every failure to open a segment was reported the same way: one warning, same wording, segment dropped, shard serves without it. Two very different things land there. The manifest is superset-biased, so it may list a segment the leader has not finalized yet or has already removed. Both arrive as `FileNotFound`, both fix themselves once the follower catches up, and both are routine. Anything else is a segment that should have loaded and did not. The shard opens without it and answers queries over a subset of its data, returning success to the client. In a recent load test this produced 667 warnings indistinguishable from ordinary leader churn. Report the first at debug and the second at error. The manifest does not need re-reading to tell them apart, so this costs nothing on the open path. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This dir contains a Justfile with recipes to build/check/run examples for edge packages. Install https://github.com/casey/just to use it.
Rust Qdrant Edge package
Rust Qdrant Edge workspace lives in the publish directory. It's a separate workspace, not tied to the main workspace.
The qdrant-edge package is autogenerated by the amalgamate.py script and placed in the ./publish/qdrant-edge directory (gitignored).
If you need to make changes in the qdrant-edge package, edit the original packages in this repo (/lib in the repo root).
just rs-examples
# Or, manually:
./amalgamate.py
cargo check -p examples
cargo run -p examples --bin demo
cargo run -p examples --bin …
(see full binary list in publish/examples/src/bin)
How to publish Rust Package to crates.io
- Update the
VERSIONin publish/amalgamate.py. - Run Qdrant Edge Rust Release workflow.
Python Qdrant Edge package
It's in the python directory. It's part of the main workspace, unlike the Rust package.
just py-build
just py-examples
Or, manually:
# Setup environment
cd lib/edge/python
python -m venv .venv
source .venv/bin/activate
pip install --user maturin
# Build and install the package:
cd lib/edge/python
maturin develop --no-default-features
# Run example:
python examples/demo.py