When uploading few Debian packages at the same time, the deployment cause for race condition and ends up with duplication of artifacts in the 'Packages' file, manual metadata calculation fix the 'Packages' file and remove the duplications.
Steps to reproduce:
1. collect few Debian packages for upload.
2. deploy the artifact at the same, for example using the following script:
#!/bin/bash artifacts=$(ls testDeb) for deb in $artifacts; do curl -uadmin:password -XPUT "http://localhost:8081/artifactory/debian-local/pool/$deb;deb.distribution=development;deb.component=artif;deb.architecture=amd64" -T ./testDeb/$deb & done
3.download the relevant 'Packages' file and look for the number of indexed artifacts (will be higher than the artifacts number).
4. Delete one of the duplicated artifacts
5. Download the Packages again and you will still see one entrance of that artifact that you removed.
- is related to
-
RTFACT-15861 Multiple Debian deploys cause for metadata calculation race condition and ends with duplications.
- Closed