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

sort tmp files closed before removing? #124

Closed
goranrakocevic opened this issue Mar 4, 2015 · 2 comments
Closed

sort tmp files closed before removing? #124

goranrakocevic opened this issue Mar 4, 2015 · 2 comments

Comments

@goranrakocevic
Copy link

Hi,

I've tried running sort in a NFS mounted directory (tmp is also in this directory). I sort exists with the error:
sambamba-sort: Failed to remove file ./sambamba-pid30-osbs/.nfs00000000008a005200000003: Device or resource busy

This tends to happen if a process maintains an open handle on a file that is removed. Removing the directory then fails.
Not placing the tmp on the nfs is a way around the issue, but it would be helpful if it could work this way as well.

chapmanb added a commit to chapmanb/homebrew-cbl that referenced this issue Mar 18, 2015
chapmanb added a commit to chapmanb/sambamba that referenced this issue Mar 19, 2015
On busy NFS filesystems, removal of temporary directories can fail due
to NFS having a lock on files. This avoids erroring out in this
situation. (biod#124 bcbio/bcbio-nextgen#784)
@lomereiter
Copy link
Contributor

Fixed by Brad.

@cc2qe
Copy link

cc2qe commented Apr 29, 2015

thanks for this fix! I was having this problem as well and had no idea how to address it. works great now

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

No branches or pull requests

3 participants