![]() |
|
|
Change By:
|
Daniel Beck
(29/Mar/15 12:10 AM)
|
Summary:
|
Introduce directory
desposal
disposal
service
|
Description:
|
Jenkins discards directories that are not needed any longer all the time. Aside from the fact it is subject of different random failures (on windows, on NFS, etc.), it is also a time consuming operation.
Instead of deleting such files synchronously, I propose to create Jenkins-wide service where directories can be registered for
latter
later
disposal. The service will rename the directory so it will appear deleted immediately and delete the renamed one
latter
later
.
Similar approach is implemented in [Workspace cleanup plugin|https://issues.jenkins-ci.org/browse/JENKINS-20056] though the solution leaks renamed directories in case the deletion fails.
Such service will track registered directories even after the deletion failed and retry as many times as necessary or possibly report to admin that there is a problem Jenkins itself cannot handle despite repeated attempts.
There are several areas that can benefit from this aside from Workspace cleanup. though, I am not sure if this behaviour should replace what {{FilePath#deleteRecursive}} currently does.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.