You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Hinterseher (JIRA)" <ji...@codehaus.org> on 2010/08/03 11:37:32 UTC

[jira] Created: (MCLEAN-45) Clean plugin should support a silent retry in case the first attemp fails

Clean plugin should support a silent retry in case the first attemp fails
-------------------------------------------------------------------------

                 Key: MCLEAN-45
                 URL: http://jira.codehaus.org/browse/MCLEAN-45
             Project: Maven 2.x Clean Plugin
          Issue Type: Improvement
    Affects Versions: 2.4.1
            Reporter: Michael Hinterseher
            Priority: Minor


Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCLEAN-45) Clean plugin should support a silent retry in case the first attemp fails

Posted by "Michael Hinterseher (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCLEAN-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231345#action_231345 ] 

Michael Hinterseher commented on MCLEAN-45:
-------------------------------------------

Thanks for quick response. I will make some tests. I am sure the fix solves the problem.

> Clean plugin should support a silent retry in case the first attemp fails
> -------------------------------------------------------------------------
>
>                 Key: MCLEAN-45
>                 URL: http://jira.codehaus.org/browse/MCLEAN-45
>             Project: Maven 2.x Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: Michael Hinterseher
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.4.2
>
>
> Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
> In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCLEAN-45) Clean plugin should support a silent retry in case the first attemp fails

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCLEAN-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231974#action_231974 ] 

Benjamin Bentmann commented on MCLEAN-45:
-----------------------------------------

Additionally added a new parameter to disable the re-attempted deletions in [r985474|http://svn.apache.org/viewvc?view=revision&revision=985474] as [suggested by Brett|http://www.mail-archive.com/dev@maven.apache.org/msg85407.html].

Michael, any field experiences so far whether the reworked code actually helps?

> Clean plugin should support a silent retry in case the first attemp fails
> -------------------------------------------------------------------------
>
>                 Key: MCLEAN-45
>                 URL: http://jira.codehaus.org/browse/MCLEAN-45
>             Project: Maven 2.x Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: Michael Hinterseher
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.4.2
>
>
> Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
> In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MCLEAN-45) Clean plugin should support a silent retry in case the first attemp fails

Posted by "Gili (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCLEAN-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255452#action_255452 ] 

Gili commented on MCLEAN-45:
----------------------------

When will this fix be released to the general public? I keep on running into this problem especially with Windows' indexing service.

> Clean plugin should support a silent retry in case the first attemp fails
> -------------------------------------------------------------------------
>
>                 Key: MCLEAN-45
>                 URL: http://jira.codehaus.org/browse/MCLEAN-45
>             Project: Maven 2.x Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: Michael Hinterseher
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.5
>
>
> Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
> In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MCLEAN-45) Clean plugin should support a silent retry in case the first attemp fails

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCLEAN-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MCLEAN-45.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.4.2
         Assignee: Benjamin Bentmann

The plugin was already making two attempts for deletion (the second after 10ms waiting), which is now further extended in [r983256|http://svn.apache.org/viewvc?view=revision&revision=983256]. Now, the plugin makes up to four attempts to delete a file, after delays of 125, 250 and 750 ms, respectively. A new snapshot has been deployed, I would appreciate some feedback whether this logic is more effective.

> Clean plugin should support a silent retry in case the first attemp fails
> -------------------------------------------------------------------------
>
>                 Key: MCLEAN-45
>                 URL: http://jira.codehaus.org/browse/MCLEAN-45
>             Project: Maven 2.x Clean Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: Michael Hinterseher
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 2.4.2
>
>
> Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
> In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira