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

Empty scratch directory on startup #601

Closed
wants to merge 1 commit into from

Conversation

guilload
Copy link
Member

Description

Empty scratch directory on startup. Fixes #599.

How was this PR tested?

Added unit tests.

@guilload guilload force-pushed the guilload--empty-scratch-dir-on-startup branch from 9e94d7c to 1d7d903 Compare September 29, 2021 23:59
@guilload guilload force-pushed the guilload--empty-scratch-dir-on-startup branch from 1d7d903 to 1212c43 Compare September 30, 2021 00:27
Copy link
Contributor

@fulmicoton fulmicoton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't work because the quickwit-cache directory used fro the upload cache is a subdir of that dir.

We don't want to remove it.
One fix could be to add create a dir called scratch on top of the indexing directory.

indexing-directory/
    scratch/
    quickwit-cache/

We might want to rename quickwit-cache split-cache too.

@guilload
Copy link
Member Author

guilload commented Oct 1, 2021

Ok, I was not aware of that. So yeah, let's create the upload cache in a separate folder. I'll update this PR.

@fulmicoton
Copy link
Contributor

@guilload it was not merge when you fixed the bug :)

@guilload
Copy link
Member Author

guilload commented Oct 7, 2021

Superceeded by #644.

@guilload guilload closed this Oct 7, 2021
@guilload guilload deleted the guilload--empty-scratch-dir-on-startup branch October 25, 2021 15:32
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.

Clean up scratch on restart
2 participants