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

Debian metadata calculation can fail due to file save race condition.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.5.9
    • Fix Version/s: None
    • Component/s: Debian, Metadata
    • Labels:
      None
    • Severity:
      Medium

      Description

      Problem Description:

      In edge case when there are high number of concurrent Debian packages deployments, the calculation of one or more Debian packages will fail since although an ADD event have been created to the artifact it haven't been committed yet, therefore, Artifactory will not manage to find it and the metadata calculation for this fail will fail with the following error:

      2018-12-11 17:59:19,567 [art-exec-597790] [WARN ] (o.j.r.d.e.DpkgMetadataExtractor:206) - Can't read Artifact at path <PATH> --> Failed to retrieve resource <PATH>: Could not get resource stream. Path ‘<PATH>’ not found in <REPO NAME>

      Impact:

      This causes occassional failures with a large amount of load that requires manual searching and indexing to fix, and due to debian indexing it can cause a file to be unavailable for a while as it fails future requests.

       

      Expected Behaviour:

      Debian packages should get indexed without issue.

      Environment details:
      Artifactory/Xray version which the bug was reproduced on: 7.37.14
      DB type & Version: postgres
      Is this an HA env? if so, how many nodes is used: 2-3

       

      Workaround:

      the workaround for the issue is to manually trigger metadata calculation - it is possible to trigger the operation using the following REST api call.

       

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                galba Gal Ben Ami
                Reporter:
                yehudah Yehuda Hadad
                Votes:
                7 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    Sync Status

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