Skip to content
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

Mitigate Interrupted system call on trace_file writes #5397

Merged

Conversation

infinite-turtles
Copy link
Contributor

Writes to files from bash built-ins like echo can be fallible, particularly in older versions of bash, such as versions 4.2.x and 4.4.x. This often lead to errors when running numerous processes with tracing enabled on network-based file systems, such as:

.command.run: line 172: echo: write error: Interrupted system call

Here is a potential mitigation. To address this, echo commands were consolidated into a single block to write to $trace_file with an error message on failure. This is assuming that the lack of a .command.trace file will not cause any downstream failures.

Reference

For more details on similar issues, see: https://unix.stackexchange.com/a/487260

Signed-off-by: Nico Holguin nholguin@illumina.com

Copy link

netlify bot commented Oct 11, 2024

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit fa7496e
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/67571489be17ba0008122990
😎 Deploy Preview https://deploy-preview-5397--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

…ove robustness

Echo commands were combined into a single block to write to $trace_file more efficiently, reducing the number of system calls. Added error handling to prevent tracing from causing workflow failures.

Signed-off-by: Nico Holguin <nholguin@illumina.com>
@infinite-turtles infinite-turtles force-pushed the trace-file-eintr-mitigation branch from 0003896 to 379299b Compare October 11, 2024 16:34
@pditommaso pditommaso requested a review from jorgee October 14, 2024 10:11
infinite-turtles and others added 3 commits December 2, 2024 11:05
Signed-off-by: Nico Holguin <nholguin@illumina.com>
Signed-off-by: Nico Holguin <nholguin@illumina.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso merged commit c6434d4 into nextflow-io:master Dec 9, 2024
5 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.

4 participants