Skip to content

Move shared cache pre-allocation and support macOS #70332

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

Merged

Conversation

jasontedor
Copy link
Member

This commit moves the shared cache pre-allocation code out of bootstrap, and instead to the searchable snapshots code. We go out of our way to only grant permissions to a specific library used for the pre-allocation.

Additionally, to ensure our interfaces are sound, we add a macOS implementation based on fcntl and ftruncate.

Relates #70285 (backport)

This commit moves the shared cache pre-allocation code out of bootstrap,
and instead to the searchable snapshots code. We go out of our way to
only grant permissions to a specific library used for the
pre-allocation.

Additionally, to ensure our interfaces are sound, we add a macOS
implementation based on fcntl and ftruncate.

Co-authored-by: Yannick Welsch <yannick@welsch.lu>
@jasontedor jasontedor merged commit a1ba75e into elastic:7.12 Mar 11, 2021
@jasontedor jasontedor deleted the move-pre-allocate-shared-cache-7.12 branch March 11, 2021 19:31
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.

1 participant