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

p2-bridge produces loads of temp folders

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.5
    • Component/s: P2
    • Labels:
      None
    • Environment:
      Ubuntu 11.10, JRE 1.6.0_29 64

      Description

      When deploying bundles to a Nexus with enabled nexus-p2-repository-plugin, each call to MetadataRepositoryService#getManager within the p2-bridge-plugin will create a temporary p2-agent folder, which will only be deleted on JVMs exit (see the call in [0]). This results in a huge amount of temp folders, which is dangerous for the whole system.

      By now there are two cron-powered workarounds (periodically restarting Nexus or deleting /sonatype-work/tmp/p2-agent-*).

      [0] https://github.com/sonatype/p2-bridge/blob/develop/org.sonatype.p2.bridge.impl/src/main/java/org/sonatype/p2/bridge/internal/MetadataRepositoryService.java#L441

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mechko Mirko Swillus
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title