Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-12070

Make the build deletion as part of a new build deployment asynchronous

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Build Info
    • Labels:
      None

      Description

      When a build has thousands of artifacts, the deletion of it can take a really long time. This presents a problem for build deployments because if the build retention policy is triggered by a new deployment, the deployment operation will hang until the deletion completes. This may take seconds to minutes to hours. This will also exceed any reasonable proxy timeout period and most builds are likely to interpret the failed call as a build failure.

      This problem is exacerbated by the fact that overlapping builds (attempting to deploy a new build while another is being deployed) can cause issues such as 500s.

      Notice these entries:

      20160805010049|11226|REQUEST|192.168.99.1|admin|PUT|/api/build|HTTP/1.1|500|1439516
      20160805010059|123320|REQUEST|192.168.99.1|admin|PUT|/api/build|HTTP/1.1|204|1439516
      

      The first deployment (second entry in the log) takes 123 seconds to complete (due to build deletion) and causes the later deployment to fail with 500.

      This would be alleviated by making the build deletion asynchronous from the deployment.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lizad Liza Dashevski (Inactive)
                Reporter:
                arturoa Arturo Aparicio
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: