Skip to content

[7.15] Quicker shared cache file preallocation (#79447)#79483

Merged
elasticsearchmachine merged 1 commit intoelastic:7.15from
ywelsch:backport/7.15/pr-79447
Oct 19, 2021
Merged

[7.15] Quicker shared cache file preallocation (#79447)#79483
elasticsearchmachine merged 1 commit intoelastic:7.15from
ywelsch:backport/7.15/pr-79447

Conversation

@ywelsch
Copy link
Copy Markdown
Contributor

@ywelsch ywelsch commented Oct 19, 2021

Backports the following commits to 7.15:

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 4aaf417 into elastic:7.15 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.15.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants