-
Notifications
You must be signed in to change notification settings - Fork 1k
chore(tiering): Test utils for faulty io #4928
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
0134534
to
7938f78
Compare
@@ -0,0 +1,46 @@ | |||
#!/bin/bash |
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.
wow, this is cool!
how did you find this? chatgpt?
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.
I'm too old for that 👴🏻 Googling
https://unix.stackexchange.com/questions/77492/special-file-that-causes-i-o-error
@@ -80,7 +80,7 @@ error_code DiskStorage::Open(string_view path) { | |||
backing_file_ = std::move(res.value()); | |||
|
|||
int fd = backing_file_->fd(); | |||
RETURN_ON_ERR(DoFiberCall(&SubmitEntry::PrepFallocate, fd, 0, 0L, kInitialSize)); | |||
DoFiberCall(&SubmitEntry::PrepFallocate, fd, 0, 0L, kInitialSize); |
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.
why did you remove the return?
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.
Not all filesystems support fallocate
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.
Grow() will fail as well, otherwise it's ok to just write past file boundaries
Adds initial prototype for creating faulty mountpoints to test tiering with spontaneous io errors