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

Createrepo run simultaneously across multiple repositories can fill the events queue blocking further uploads

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.13.0
    • Fix Version/s: None
    • Component/s: Yum
    • Labels:
    • Story Points:
      3

      Description

      If the wait interval is too high and too many repositories each schedule a createrepo at the same time then there is a chance that the event thread pool will get filled up blocking the rest of the application and further uploads.

      Steps to reproduce

      1. Set nexus.yum.createrepo.interval to a large number in etc/nexus.properties ( try 60000000)
      2. Create a large number of yum repositories (I had 1000 but 50 should do it)
      3. Upload a single RPM to each one
      4. Eventually your uploads will fail because events from across the system are blocked because all threads in the event pool are used up waiting for https://github.com/sonatype/nexus-internal/blob/f1a057acd48746090bddcf47db6fe29da1e90ff7/private/plugins/nexus-repository-yum/src/main/java/org/sonatype/nexus/repository/yum/internal/createrepo/CreateRepoFacetImpl.java#L203

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jstephens Joseph Stephens
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title