Skip to content

[7.x] Quicker shared cache file preallocation (#79447)#79482

Merged
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
ywelsch:backport/7.x/pr-79447
Oct 19, 2021
Merged

[7.x] Quicker shared cache file preallocation (#79447)#79482
elasticsearchmachine merged 1 commit intoelastic:7.xfrom
ywelsch:backport/7.x/pr-79447

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Oct 19, 2021

Backports the following commits to 7.x:

Reworks preallocation of the shared_cache file, which was very slow on Windows.

Instead of manually filling the file with 0's, this new approach uses the RandomAccessFile.setLength() method, which
can quickly allocate a file of the given size (tested that this took only seconds to preallocate TB-size file on Windows).
@ywelsch ywelsch added auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport labels Oct 19, 2021
@elasticsearchmachine elasticsearchmachine merged commit 8c31de6 into elastic:7.x Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants