-
Notifications
You must be signed in to change notification settings - Fork 997
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
wait completion of staging blocks in writeback mode #2644
Comments
I'm working on this issue, as the go-fuse does not support DESTROY operation, here are three possible alternatives:
The first solution works well with the K8S CSI but does nothing when users execute the |
Hi @Hexilee, any updates? As a variation of option 2, juicefs already has umount subcommand with -f option. It appears that you could implement the logic there without introducing a new subcommand. A new subcommand like flush is a nice to have as well. |
I prefer option 3 personally. If we implement it in |
The normal In any case, people who care about these details just want to have a reliable way to prevent data loss (e.g. a writing pod could be spawned elsewhere and retry the writes correctly). |
Reasonable, I'm going to implement this feature in the |
In writeback mode, we may want all the staging blocks to be uploaded before umount.
We can use the FUSE DESTROY operation as an signal to flush all staging blocks: torvalds/linux@0ec7ca4
The text was updated successfully, but these errors were encountered: