-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
test: Add fault injection in cache fuzzer #11969
Conversation
This pull request was exported from Phabricator. Differential Revision: D67662693 |
✅ Deploy Preview for meta-velox canceled.
|
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.
@zacw7 LGTM % minors. Thanks!
velox/exec/fuzzer/CacheFuzzer.cpp
Outdated
if (FLAGS_enable_file_faulty_injection) { | ||
faultyFileSystem()->setFileInjectionHook([&](FaultFileOperation* op) { | ||
if (std::regex_match(op->path, kDataFileNamePattern)) { | ||
// Skip errors on input data files. |
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.
What's the input data files here?
I think you could capture the input file directory here and match as prefix? Thanks!
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.
The input files are in the same directory, named as file_{}
while cache files are named as cache_{}
.
velox/exec/fuzzer/CacheFuzzer.cpp
Outdated
dist(rd) <= kFileWriteErrorRate) { | ||
VELOX_FAIL("Inject hook write failure"); | ||
} | ||
if (op->type == FaultFileOperation::Type::kReadv && |
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.
ssd cache all use readv? Thanks!
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.
actually evictlog read uses read
and checkpoint write uses append
. let me add those cases to the injection.
Summary: Pull Request resolved: facebookincubator#11969 Differential Revision: D67662693
e0d2783
to
2c461b6
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
Summary: Pull Request resolved: facebookincubator#11969 Differential Revision: D67662693
2c461b6
to
41507b5
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
Summary: Pull Request resolved: facebookincubator#11969 Differential Revision: D67662693
41507b5
to
b23a86d
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
Summary: Pull Request resolved: facebookincubator#11969 Differential Revision: D67662693
b23a86d
to
1e9374a
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
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.
@zacw7 LGTM. Thanks!
Summary: Pull Request resolved: facebookincubator#11969 Reviewed By: xiaoxmeng Differential Revision: D67662693
1e9374a
to
d98de32
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
Summary: Pull Request resolved: facebookincubator#11969 Reviewed By: xiaoxmeng Differential Revision: D67662693
d98de32
to
5441501
Compare
This pull request was exported from Phabricator. Differential Revision: D67662693 |
This pull request has been merged in 20eb8ec. |
Differential Revision: D67662693