Skip to content

fix: check the close of the temp directory probe - #99

Merged
HaoZeke merged 1 commit into
developfrom
fix/tempdir-probe-close
Nov 26, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/tempdir-probe-close

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

TempDir.get used to ignore the close of the probe file it writes
before it keeps a directory. A write that a network file system
reports lost only at close still counted as success, and the
directory stayed chosen for the rest of the process.

The close goes through temp_probe_ops. A failed close leaves that
directory unchosen and removes the probe file. A close that a
signal interrupts counts as success and is not retried. A cleanup
close after an earlier error keeps that error.

TempDir.get used to ignore the close of the probe file it writes
before it keeps a directory. A write that a network file system
reports lost only at close still counted as success, and the
directory stayed chosen for the rest of the process.

The close goes through temp_probe_ops. A failed close leaves that
directory unchosen and removes the probe file. A close that a
signal interrupts counts as success and is not retried. A cleanup
close after an earlier error keeps that error.
@HaoZeke
HaoZeke merged commit a7d63ba into develop Nov 26, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/tempdir-probe-close branch November 26, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant