Skip to content
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

Flush in multiple_append test (#4868) #4869

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #4868 (hopefully)

Rationale for this change

I'm hoping this is what is behind the test failures

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the object-store Object Store Interface label Sep 27, 2023
@tustvold
Copy link
Contributor Author

From https://docs.rs/tokio/latest/tokio/fs/struct.File.html

A file will not be closed immediately when it goes out of scope if there are any IO operations that have not yet completed. To ensure that a file is closed immediately when it is dropped, you should call flush before dropping it

As we don't use tokio::fs elsewhere this shouldn't impact other methods

@tustvold tustvold force-pushed the multiple-append-flush branch from ffcc277 to 75a0638 Compare September 27, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ObjectStore multiple_append Test is Flaky
2 participants