Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(blooms): Fix issue when loading cache on startup if directory does not exist #12080

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Feb 28, 2024

What this PR does / why we need it:

The check !dirEntry.IsDir() panicked in case dirEntry is nil, which is the case when the root directory does not exist.

The PR also adds more logging.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
@chaudum chaudum changed the title Fix issue when loading cache on startup if directory does not exist fix(blooms): Fix issue when loading cache on startup if directory does not exist Feb 28, 2024
@chaudum chaudum marked this pull request as ready for review February 28, 2024 11:07
@chaudum chaudum requested a review from a team as a code owner February 28, 2024 11:07
@chaudum chaudum merged commit 637c292 into main Feb 28, 2024
13 checks passed
@chaudum chaudum deleted the chaudum/fix-store-empty-workdir branch February 28, 2024 12:04
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
…s not exist (grafana#12080)

The check `!dirEntry.IsDir()` panicked in case `dirEntry` is `nil`, which is the case when the root directory does not exist.

The PR also adds more logging.

Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants