Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-5737

Cleaning of p2-agent-* temporary folders

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5
    • Component/s: P2
    • Labels:
      None

      Description

      When running a P2 Repository task, the plugin creates a lot of p2-agent-* folder in the temp directory of Nexus. These folders are marked for deletion on exit.

      Therefore, when nexus is shutting down, all these folders are deleted. But, in some case (when many plugin calls have been done), it takes too long to delete them and the Tanuki Wrapper kill the process before the cleanup was perfomed.

      Is there a way to clean all these temporary folders before the system exits ? Or maybe these P2 agent metadata can be reused accross plugin calls ?

      Used version:
      Nexus OSS: 2.4.0-09
      P2 Bridge Plugin: 2.1
      P2 Repository Plugin: 2.3.1

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              plynch Peter Lynch
              Reporter:
              jjoslet Jérôme Joslet
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title