-
Notifications
You must be signed in to change notification settings - Fork 4k
kvserver: dump memFS when TestCheckConsistencyInconsistent fails #151122
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
Conversation
stevendanna
left a comment
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.
Overall LGTM. One question that I leave to your discretion.
| dstEntryPath := dstFS.PathJoin(dstPath, entry) | ||
| if err := CopyRecursive(srcFS, dstFS, srcEntryPath, dstEntryPath); err != nil { | ||
| return err | ||
| } |
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.
Should we fsync() the dstPath here to ensure newly created directory entries are also present?
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.
A follow-up here, if you do decide the fsync the directory, you might need some error handling since some filesystems return an error when fsyncing a directory.
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.
Oof, reasonable point, but I think getting into that would be a distraction at this point. I'll go ahead and merge this.
|
stressrace helpfully reproduced the WAL error (ref). I'm going to merge this so that the other failure also gets the artifacts on master if it fails again. TFTR! |
|
This PR was included in a batch that successfully built, but then failed to merge into master (it was a non-fast-forward update). It will be automatically retried. |
Informs #150660.
Epic: none