Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-22472

Stopping a pipeline build during cache upload causes cache upload failed on subsequent pipelines

XMLWordPrintable

      Issue Summary

      Pipeline Cache reupload attempt on failure does not work due to lock

      Build will show as successful when cache upload failed.

      Steps to Reproduce

      1. Run a pipeline to upload cache
      2. Stop the pipeline whilst the cache is being uploaded to media services.

      Expected Result

      • Cache gets uploaded successfully in the retry
      • Subsequent Pipelines shows Upload failed in Build Teardown step.

      Actual Result

      • Before the cache begins upload, we acquire a lock (to prevent other steps in parallel uploading the same cache and causing a conflict). This lock is held whilst the upload happens, then released. If a step is stopped, we are not correctly releasing the lock, and when we retry on failure, retries fail due to the lock being held. After a period of time, this lock is eventually released.

      Workaround

      There's no known direct workarounds. You'll have to wait approximately 30minutes to an hour for the next build to upload the cache successfully again.

      If the issue persists even after an hour please feel free to raise a ticket with us: https://support.atlassian.com/contact/#/

        1. Stopped build during cache upload.png
          59 kB
          Pravin
        2. Upload Failed.png
          75 kB
          Pravin

              Unassigned Unassigned
              pmahendran+atlassian_conflict Pravin
              Votes:
              7 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: