Skip to content

Conversation

@tbg
Copy link
Member

@tbg tbg commented Jul 31, 2025

Informs #150660.

Epic: none

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@tbg tbg force-pushed the conscheckdump branch from ecd5491 to f1ae6eb Compare July 31, 2025 12:25
@tbg tbg force-pushed the conscheckdump branch from f1ae6eb to 3b06bb3 Compare July 31, 2025 12:25
@tbg tbg marked this pull request as ready for review July 31, 2025 12:34
@tbg tbg requested a review from a team as a code owner July 31, 2025 12:34
@tbg tbg requested a review from stevendanna July 31, 2025 12:34
Copy link
Collaborator

@stevendanna stevendanna left a 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
}
Copy link
Collaborator

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?

Copy link
Collaborator

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.

Copy link
Member Author

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.

@tbg
Copy link
Member Author

tbg commented Aug 1, 2025

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!
bors r+

@craig
Copy link
Contributor

craig bot commented Aug 1, 2025

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.

@craig
Copy link
Contributor

craig bot commented Aug 1, 2025

@craig craig bot merged commit 9919801 into cockroachdb:master Aug 1, 2025
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants