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

Work around init_buildsystem occasionally failing to unmount old buildroot over NFS #394

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jimklimov
Copy link
Contributor

In our practice, sometimes the umount commands in the init_buildsystem script failed to deliver, especially against NFS build roots where some hiccup caused its files or directories to get stale at the wrong moment.

So they were augmented by forced+lazy unmounts, which ensured that subsequent file-deleting spree did not impact bind-mounted system directories, and later by asynchronous deletion of old build root so we do not block a new build on currently unremovable objects. Finally, recreate some things we've just deleted that were created by the build script a second before this...

…uild root asynchronously, so stale NFS objects do not block a new running build
…check()" : after trying to just unmount, also try forced lazy unmounts to quickly remove the subtrees from visibility of RM commands which follow
…check()" : add some visibility to the activity
…check()" : attempt to stop processes running inside build root
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