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

Race condition in Helm repositories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.10.8
    • Fix Version/s: 7.33.6
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium

      Description

      There is a possibility of a race condition in Helm repositories, with the same behavior as this JIRA.

      When 2 deployments happen concurrently to the same Helm local repo, then it might occur that:
      1. First deploy triggered indexing
      2. Second deploy started, and added itself to the event queue, but didn't commit to the db yet
      3. In the same millisecond, the indexing started going over the queue. The event was there but did not commit yet, so it failed.

      This is the error:

      2019-11-11 12:24:35,017 [art-exec-2344321] [ERROR] (o.j.r.h.HelmMetadataExtractor:53) - Error while extracting metadata from chart: Failed to retrieve resource helm-local:test-chart-2-0.0.1.tgz: Could not get resource stream. Path 'test-chart-2-0.0.1.tgz' not found in helm-local

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                Unassigned
                Reporter:
                avivb Aviv Blonder
                Votes:
                8 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

                    Connection: RTFACT Sync
                    RTMID-20595 -
                    SYNCHRONIZED
                    • Last Sync Date: