Skip to content

clear temp segments directory while shard loading - #2319

Merged
IvanPleshkov merged 1 commit into
devfrom
clear-temp-segments-directory
Jul 25, 2023
Merged

IvanPleshkov merged 1 commit into
devfrom
clear-temp-segments-directory

Conversation

@IvanPleshkov

@IvanPleshkov IvanPleshkov commented Jul 24, 2023 •

Copy link
Copy Markdown
Contributor

Fixes #2317.

If qdrant is stopped while indexing, temp segment will not be removed. I propose to clear temp directory while local shard loading.

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you formatted your code locally using cargo fmt command prior to submission?
  3. Have you checked your code using cargo clippy command?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@IvanPleshkov
IvanPleshkov merged commit 3a60027 into dev Jul 25, 2023
@IvanPleshkov
IvanPleshkov deleted the clear-temp-segments-directory branch July 25, 2023 10:22
dkellner added a commit to dkellner/qdrant that referenced this pull request Sep 16, 2024
This uses `TempDir` and comes with its caveats, e.g. the temporary segment
directory will not be deleted if the process exits. This should not be a
problem in practice, as all temporary segments get deleted when the shard is
loaded (see PR qdrant#2319).

Fixes qdrant#2978.
generall pushed a commit that referenced this pull request Sep 16, 2024
This uses `TempDir` and comes with its caveats, e.g. the temporary segment
directory will not be deleted if the process exits. This should not be a
problem in practice, as all temporary segments get deleted when the shard is
loaded (see PR #2319).

Fixes #2978.
timvisee pushed a commit that referenced this pull request Sep 17, 2024
This uses `TempDir` and comes with its caveats, e.g. the temporary segment
directory will not be deleted if the process exits. This should not be a
problem in practice, as all temporary segments get deleted when the shard is
loaded (see PR #2319).

Fixes #2978.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants