Skip to content

Add CacheFile#fsync() method to ensure cached data are written on disk#66200

Merged
tlrx merged 2 commits intoelastic:7.xfrom
tlrx:add-cache-file-fsync-7.x
Dec 12, 2020
Merged

Add CacheFile#fsync() method to ensure cached data are written on disk#66200
tlrx merged 2 commits intoelastic:7.xfrom
tlrx:add-cache-file-fsync-7.x

Conversation

@tlrx
Copy link
Copy Markdown
Member

@tlrx tlrx commented Dec 11, 2020

This commit adds a new CacheFile.fsync() method to fsync the cache
file on disk. This method uses the utility method IOUtils.fsync(Path,
boolean) that executes a FileChannel.force() call under the hood.

Backport of #64201 for 7.11

elastic#64201)

This commit adds a new CacheFile.fsync() method to fsync the cache
file on disk. This method uses the utility method IOUtils.fsync(Path,
boolean) that executes a FileChannel.force() call under the hood.
@tlrx tlrx added >enhancement :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v7.11.0 labels Dec 11, 2020
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Dec 11, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@tlrx tlrx added the backport label Dec 11, 2020
@tlrx tlrx merged commit aee8d6f into elastic:7.x Dec 12, 2020
@tlrx tlrx deleted the add-cache-file-fsync-7.x branch December 12, 2020 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >enhancement Team:Distributed Meta label for distributed team. v7.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants