Skip to content

fix: report submit script sync and close errors - #448

Merged
HaoZeke merged 1 commit into
developfrom
fix/submit-script-close
Nov 26, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/submit-script-close

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

writeReservedScript wrote a batch script and closed it with
sys.close, which ignores the result, then submit treated that
as success and ran sbatch. On a network file system (NFS), a
lost write surfaces only from fsync or close.

Sync with fsyncWritten, close with closeWritten, and keep
last_errno across the cleanup unlink.

`writeReservedScript` wrote a batch script and closed it with
`sys.close`, which ignores the result, then submit treated that
as success and ran `sbatch`. On a network file system (NFS), a
lost write surfaces only from `fsync` or `close`.

Sync with `fsyncWritten`, close with `closeWritten`, and keep
`last_errno` across the cleanup unlink.
@HaoZeke
HaoZeke merged commit aecc5a5 into develop Nov 26, 2026
12 checks passed
@HaoZeke
HaoZeke deleted the fix/submit-script-close branch November 26, 2026 22:44
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