Repository navigation
Improve segment loading, don't load invalid segments - #6032
Merged
Merged
Conversation
timvisee
marked this pull request as ready for review
February 20, 2025 17:57
Member
Author
coszio
approved these changes
Feb 20, 2025
Don't load a segment from a path that is not a directory. Ignore segment file names prefixed with a period as well.
timvisee
force-pushed
the
fix-segment-loading-dsstore
branch
from
February 21, 2025 09:31
66c5d34 to
58c69c3
Compare
agourlay
approved these changes
Feb 21, 2025
6 tasks done
|
When will this be released? |
Member
Author
We didn't settle on a day yet. It may be sometime in the next two weeks. |
timvisee
added a commit
that referenced
this pull request
Mar 21, 2025
* Fix segment loading, don't try to load unknown files Don't load a segment from a path that is not a directory. Ignore segment file names prefixed with a period as well. * Rework segment directory walker, error before spawning threads
Merged
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.
Fixes #6025
When loading a local shard, only load segments from valid directory paths.
Before, we'd try to load every entry in the segments directory as if it was a segment. This caused a panic during segment loading if macOS places a
.DS_Storefile in there.More specifically, we now ignore:
..DS_StoreWe now also walk over all segment path entries before trying to load them. That is significant because we now catch any IO errors before spawning threads. Before we would leak threads if crashing in the middle.
Log example when trying to load such invalid segment:
All Submissions:
devbranch. Did you create your branch fromdev?New Feature Submissions:
cargo +nightly fmt --allcommand prior to submission?cargo clippy --all --all-featurescommand?