-
Notifications
You must be signed in to change notification settings - Fork 4
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
Allow injecting faults via a unix socket #3
Comments
Hello, I explained with some detail the reason why these two faults are currently not injected through a FIFO and some possibilities that could be useful for etcd testing in this comment etcd-io/etcd#16597 (comment) Thanks for the feedback! |
Hi, @mj-ramos Recently, I use dm-flakey https://github.com/fuweid/go-dmflakey to simulate power failure.
What do you think about it? |
Hi, I apologize for the late reply. I've been quite busy lately. Thank you for your interest in LazyFS! Certainly, LazyFS can accomplish that. If I understand correctly, the feature you are suggesting appears to be somewhat similar to the clear cache command, which removes all the contents of the cache at a certain point. With this command, reads are not compromised; however, if neither fsync nor fdatasync is issued, the writes will be dropped. It seems to me that you specifically want to discard writes for a particular file? Is this correct? |
Hey, thanks for adding "reorder" and "split_write" failures and filing etcd-io/etcd#16596 bug. I'm really interested in using those in etcd testing.
However, the current implementation of fault injection is not compatible with how etcd is tested. We need to control when and how the injection happens so we can verify the etc state before and after.
I would love if LazyFS provided a command to unix socket (similar to clear cache) that allows user to invoke faults like "reorder" on the last write.
Issue to track this on etcd side etcd-io/etcd#16597
Thanks for all your great work!
The text was updated successfully, but these errors were encountered: