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

Ignoring a FileNotFound excpetion that can bring down a supervisor. #667

Merged
merged 2 commits into from
Sep 19, 2013

Conversation

revans2
Copy link
Contributor

@revans2 revans2 commented Aug 28, 2013

When running tests we found a race. kill_local_storm_cluster in testing.clj tries to shut down the supervisor and kill all running workers using try_worker_cleanup. At the same time a worker may have exited and the sync_process would also call try_worker_cleanup. The last one called gets a FileNotFoundException from the call to rmr. rmr can also throw an IOException if there are other issues with deleting the directory. I thought it was best just to ignore this error like we do RuntimeExceptions thrown by rmpath.

@nathanmarz
Copy link
Owner

Wouldn't it be better to catch and suppress FileNotFoundExceptions in rmpath itself? The ultimate goal of the function is to ensure that path is deleted, so it's fine to suppress that error.

@revans2
Copy link
Contributor Author

revans2 commented Aug 29, 2013

Will do.

nathanmarz added a commit that referenced this pull request Sep 19, 2013
Ignoring a FileNotFound excpetion that can bring down a supervisor.
@nathanmarz nathanmarz merged commit fc5fbb8 into nathanmarz:master Sep 19, 2013
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.

2 participants