Repository navigation
Fix missing segments, use correct path for new segment created during snapshot - #4332
Merged
Merged
Conversation
timvisee
marked this pull request as ready for review
May 27, 2024 15:31
timvisee
commented
May 27, 2024
|
|
||
| // Create temporary appendable segment to direct all proxy writes into | ||
| let tmp_segment = LockedSegment::new(build_segment(collection_path, &config, false)?); | ||
| let tmp_segment = LockedSegment::new(build_segment(segments_path, &config, false)?); |
Member
Author
There was a problem hiding this comment.
Most importantly, we put new segments in the collection path before, instead of the segments path.
It wasn't super obvious to detect because it just works when placed in any directory until you restart.
ffuugoo
reviewed
May 27, 2024
ffuugoo
left a comment
Contributor
There was a problem hiding this comment.
Great job figuring this out! 👍
generall
approved these changes
May 27, 2024
6 tasks done
timvisee
added a commit
that referenced
this pull request
May 28, 2024
… snapshot (#4332) * Put temporary segment in correct path * Use shard directory rather than collection directory in test * Fix collection path getter, it actually returns segments path * Use segments path for temporary segment * The build segment function actually wants the segments path * Refactor parameter name
Merged
timonv
referenced
this pull request
in bosun-ai/swiftide
Jun 28, 2024
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [qdrant/qdrant](https://qdrant.com/) ([source](https://togithub.com/qdrant/qdrant)) | service | patch | `v1.9.2` -> `v1.9.7` | --- ### Release Notes <details> <summary>qdrant/qdrant (qdrant/qdrant)</summary> ### [`v1.9.7`](https://togithub.com/qdrant/qdrant/releases/tag/v1.9.7) [Compare Source](https://togithub.com/qdrant/qdrant/compare/v1.9.6...v1.9.7) ### Change log #### Improvements - [https://github.com/qdrant/qdrant/pull/4517](https://togithub.com/qdrant/qdrant/pull/4517) - Do not allow embedding the web UI in an iframe - [https://github.com/qdrant/qdrant/pull/4556](https://togithub.com/qdrant/qdrant/pull/4556) - Include HNSW configuration in snasphots to fix some edge cases #### Bug fixes - [https://github.com/qdrant/qdrant/pull/4555](https://togithub.com/qdrant/qdrant/pull/4555) - Fix panic on start with sparse index from versions 1.9.3 to 1.9.6 - [https://github.com/qdrant/qdrant/pull/4551](https://togithub.com/qdrant/qdrant/pull/4551) - Fix positive/negative points IDs being excluded when using recommendation search with `lookup_from` ### [`v1.9.6`](https://togithub.com/qdrant/qdrant/releases/tag/v1.9.6) [Compare Source](https://togithub.com/qdrant/qdrant/compare/v1.9.5...v1.9.6) ### Change log #### Bug fixes - [https://github.com/qdrant/qdrant/pull/4472](https://togithub.com/qdrant/qdrant/pull/4472) - fix potential panic on recovery sparse vectors from crash - [https://github.com/qdrant/qdrant/pull/4426](https://togithub.com/qdrant/qdrant/pull/4426) - improve error message on missing payload index - [https://github.com/qdrant/qdrant/pull/4375](https://togithub.com/qdrant/qdrant/pull/4375) - fix in-place updates for sparse index - [https://github.com/qdrant/qdrant/pull/4523](https://togithub.com/qdrant/qdrant/pull/4523) - fix missing payload index issue, introduced in v1.9.5 ### [`v1.9.5`](https://togithub.com/qdrant/qdrant/releases/tag/v1.9.5) [Compare Source](https://togithub.com/qdrant/qdrant/compare/v1.9.4...v1.9.5) ### Change log #### Features - [https://github.com/qdrant/qdrant/pull/4254](https://togithub.com/qdrant/qdrant/pull/4254) - Add pyroscope integration for continuous profiling on demand #### Improvements - [https://github.com/qdrant/qdrant/pull/4309](https://togithub.com/qdrant/qdrant/pull/4309) - Allow to configure default number of shards per node - [https://github.com/qdrant/qdrant/pull/4317](https://togithub.com/qdrant/qdrant/pull/4317) - Allow to overwrite optimizer settings via config - [https://github.com/qdrant/qdrant/pull/4312](https://togithub.com/qdrant/qdrant/pull/4312), [https://github.com/qdrant/qdrant/pull/4369](https://togithub.com/qdrant/qdrant/pull/4369) - Improve vector size estimations, making index thresholds more reliable - [https://github.com/qdrant/qdrant/pull/4428](https://togithub.com/qdrant/qdrant/pull/4428) - Improve default maximum segment size, base it on number of CPUs used for indexing - [https://github.com/qdrant/qdrant/pull/4370](https://togithub.com/qdrant/qdrant/pull/4370) - Use consistent RocksDB settings for both put and remove - [https://github.com/qdrant/qdrant/pull/4376](https://togithub.com/qdrant/qdrant/pull/4376) - Improve ordering of insertions and deletions in RocksDB - [https://github.com/qdrant/qdrant/pull/4371](https://togithub.com/qdrant/qdrant/pull/4371) - Log error if segment flushing failed on drop - [https://github.com/qdrant/qdrant/pull/4352](https://togithub.com/qdrant/qdrant/pull/4352) - Promote REST request processing problems from warning to error - [https://github.com/qdrant/qdrant/pull/4368](https://togithub.com/qdrant/qdrant/pull/4368) - Improve error messages in cases of missing vectors - [https://github.com/qdrant/qdrant/pull/4391](https://togithub.com/qdrant/qdrant/pull/4391) - Improve shard state log message, not strictly related to snapshot recovery - [https://github.com/qdrant/qdrant/pull/4414](https://togithub.com/qdrant/qdrant/pull/4414) - Improve Dockerfile, don't invalidate caches each commit and allow debug settings #### Bug fixes - [https://github.com/qdrant/qdrant/pull/4402](https://togithub.com/qdrant/qdrant/pull/4402) - Fix deadlock caused by concurrent snapshot and optimization - [https://github.com/qdrant/qdrant/pull/4411](https://togithub.com/qdrant/qdrant/pull/4411) - Fix potentially losing vectors on crash by enabling RocksDB WAL - [https://github.com/qdrant/qdrant/pull/4416](https://togithub.com/qdrant/qdrant/pull/4416), [https://github.com/qdrant/qdrant/pull/4440](https://togithub.com/qdrant/qdrant/pull/4440) - Respect `max_segment_size` on data ingestion with optimizers disabled, create segments as needed - [https://github.com/qdrant/qdrant/pull/4442](https://togithub.com/qdrant/qdrant/pull/4442) - Fix potentially having bad HNSW links on multithreaded systems ### [`v1.9.4`](https://togithub.com/qdrant/qdrant/releases/tag/v1.9.4) [Compare Source](https://togithub.com/qdrant/qdrant/compare/v1.9.3...v1.9.4) ### Change log #### Bug fixes - [https://github.com/qdrant/qdrant/pull/4332](https://togithub.com/qdrant/qdrant/pull/4332) - Fix potentially losing a segment when creating a snapshot with ongoing updates - [https://github.com/qdrant/qdrant/pull/4342](https://togithub.com/qdrant/qdrant/pull/4342) - Fix potential panic on start if there is no appendable segment - [https://github.com/qdrant/qdrant/pull/4328](https://togithub.com/qdrant/qdrant/pull/4328) - Prevent panic when searching with huge limit ### [`v1.9.3`](https://togithub.com/qdrant/qdrant/releases/tag/v1.9.3) [Compare Source](https://togithub.com/qdrant/qdrant/compare/v1.9.2...v1.9.3) ### Change log #### Improvements - [https://github.com/qdrant/qdrant/pull/4165](https://togithub.com/qdrant/qdrant/pull/4165) - Handle Out-Of-Disk on insertions gracefully - [https://github.com/qdrant/qdrant/pull/3964](https://togithub.com/qdrant/qdrant/pull/3964) - Faster consensus convergence with batched updates - [https://github.com/qdrant/qdrant/pull/4301](https://togithub.com/qdrant/qdrant/pull/4301) - Deduplicate points by ID for custom sharding #### Bug fixes - [https://github.com/qdrant/qdrant/pull/4307](https://togithub.com/qdrant/qdrant/pull/4307) - Fix overflow panic if scroll limit is usize::MAX - [https://github.com/qdrant/qdrant/pull/4322](https://togithub.com/qdrant/qdrant/pull/4322) - Fix panic with missing sparse vectors after recovery of corrupted storage #### Web UI - [https://github.com/qdrant/qdrant-web-ui/pull/183](https://togithub.com/qdrant/qdrant-web-ui/pull/183) - Notification for miss-configured collections Full change log: https://github.com/qdrant/qdrant-web-ui/releases/tag/v0.1.26 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/bosun-ai/swiftide). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjAuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyMC4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
HighBestCoder
pushed a commit
to HighBestCoder/qdrant
that referenced
this pull request
Dec 14, 2025
…fbcode/faiss/impl (qdrant#4332) Differential Revision: D74239080 Pulled By: junjieqi fbshipit-source-id: 635cb0f408168ab0ad1172965c5798767a23339c
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.
Fix issue where segments did go missing.
We created a new segments in the wrong directory, which means they would not be loaded on restart.
This also refactors some parameters, function names and documentation to remove a lot of confusion around what type of paths are used where.
All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --all --all-featurescommand?