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

Conda metadata calculation fails due to race condition

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.5.9, 6.9.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      When there are deployment in the loop to Conda repository or if there are any storage events happening extensively or in the loop. The Calculation for Conda package will fail because the events have not yet completed or committed and yet the metadata calculation is triggered causing it to fail due to a race condition.

       

      2019-04-30 17:17:26,924 [art-exec-6319] [ERROR] (o.a.w.q.WorkQueueImpl:99) - Conda Metadata: failed to process CondaRecalculateMetadataWorkItem(parentRepoPath=Demo-local-conda:, eventType=ADD)
      java.lang.RuntimeException: Failed to call work queue 'Conda Metadata' callback due to :Failed to retrieve resource Demo-local-conda:cheetah-2.4.4-py27_0.tar.bz2: Could not get resource stream. Path 'cheetah-2.4.4-py27_0.tar.bz2' not found in Demo-local-conda

       

       a workaround is to manually run metadata calculation either by UI (Recalculate index) or Conda metadata REST API

      https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-CalculateCondaRepositoryMetadata

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              balajis Balaji Satish
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: