-
Notifications
You must be signed in to change notification settings - Fork 6.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
Attempt to deflake DBTestXactLogIterator.TransactionLogIteratorCorruptedLog #8627
Conversation
@ltamasi has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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.
LGTM. Thanks for fixing it.
0c9fbce
to
104030b
Compare
@ltamasi has updated the pull request. You must reimport the pull request before landing. |
@ltamasi has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@ltamasi has updated the pull request. You must reimport the pull request before landing. |
@ltamasi has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
…tedLog Summary: The `truncate` syscall used by this test case sometimes fails on our CI. The patch changes the test to use `test::TruncateFile` in an attempt to deflake it. Test Plan: `make check`
… truncating; some minor cleanup
d739470
to
a59c738
Compare
@ltamasi has updated the pull request. You must reimport the pull request before landing. |
@ltamasi has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
I believe I've managed to trace the flakiness back to #8591. Based on our discussion with @siying on that PR, I've updated the code to disable file deletions before the @akankshamahajan15 @riversand963 Since there have been some changes since you've approved, could you take another look at the patch? |
Is not Line 133 in e8f218c
|
Yes but then it re-enables it, which results in an immediate purge, potentially invalidating the result of the call before the caller gets to use it. Disabling/enabling also at the call site prevents this from happening, since |
Summary:
The patch attempts to deflake
DBTestXactLogIterator.TransactionLogIteratorCorruptedLog
by disabling file deletions while retrieving the list of WAL files and truncating the first WAL file.
This is to prevent the
PurgeObsoleteFiles
call triggered byGetSortedWalFiles
frominvalidating the result of
GetSortedWalFiles
. The patch also cleans up the test case a bitand changes it to using
test::TruncateFile
instead of calling thetruncate
syscall directly.Test Plan:
make check