[Issue 4044] New - Discard old Builds does not work properly

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4044] New - Discard old Builds does not work properly

christianm81
https://hudson.dev.java.net/issues/show_bug.cgi?id=4044
                 Issue #|4044
                 Summary|Discard old Builds does not work properly
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|issues@hudson
             Reported by|christianm81






------- Additional comments from [hidden email] Thu Jul 16 14:06:23 +0000 2009 -------
We are using Hudson 1.309 on SuSe Linux 2.6.16.60 on a ReiserFS
partition.

Our project is a Java module project build by Maven2. We have configured our
project to discard old builds with a maximum number of 20 builds. (Each build
consumes about 200 MB.)

Hudson sometimes does not delete old builds. It seems that Hudson does not call
the method to delete the build. We have performed a system trace in order to
investigate what hudson "really" does. In the strace output "unlink" (system
call to delete a file) is never called on these builds.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4044] Discard old Builds does not work properly

scm_issue_link
https://hudson.dev.java.net/issues/show_bug.cgi?id=4044






------- Additional comments from [hidden email] Sat Jul 18 22:17:46 +0000 2009 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/model/Job.java
 trunk/hudson/main/core/src/main/java/hudson/tasks/LogRotator.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=19881
Log:
[HUDSON-4044] Added logging to hudson.tasks.LogRotator so that you can get more information about what's going on. This will be in 1.317.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4044] Discard old Builds does not work properly

christianm81
In reply to this post by christianm81
https://hudson.dev.java.net/issues/show_bug.cgi?id=4044






------- Additional comments from [hidden email] Thu Jul 23 14:53:13 +0000 2009 -------
Created an attachment (id=792)
minimal patch for LogRotator.java, adding logging output


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4044] Discard old Builds does not work properly

christianm81
In reply to this post by christianm81
https://hudson.dev.java.net/issues/show_bug.cgi?id=4044






------- Additional comments from [hidden email] Thu Jul 23 14:54:04 +0000 2009 -------
Thanks for helping us this quickly.

Currently, the software will only log the reason why a particular run will not
be deleted, but we think that it would also be interesting to see which runs are
deleted so we could track every run the LogRotator handles.
In this way, we could gather some more information whether Hudson touches every
run or "misses" some of them.

We have provided a patch for the LogRotator class as attachment which implements
our idea.

Best regards...

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]