-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement fsync and handle write errors (#313)
Implement `fsync` to allow users to complete a put request and receive confirmation that it succeeded or failed. If a file handle is released without a call to `fsync`, `release` will still complete the upload as before. Wrap the `UploadRequest` in the file handle in a new `UploadState` enum, in order to detect: * on `release`, whether the request had been already completed by an `fsync` call, * `write` is invoked after an `fsync`, * `write` (or `fsync`) is invoked after a previous call failed. Also adds support for put failures to FailureClient. --------- Signed-off-by: Alessandro Passaro <[email protected]>
- Loading branch information
Showing
10 changed files
with
588 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
c89f05d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.random_read_small_file
1.6201171875
MiB/s5.51171875
MiB/s3.40
This comment was automatically generated by workflow using github-action-benchmark.