[RTFACT-13317] Simultaneously uploading images with common layers can cause some of the pushes to fail Created: 05/Jan/17  Updated: 30/Apr/18  Resolved: 01/Feb/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Docker
Affects Version/s: None
Fix Version/s: 5.9.0

Type: Bug Priority: High
Reporter: Arturo Aparicio Assignee: Dudi Morad
Resolution: Fixed Votes: 2
Labels: None

Issue Links:
Duplicate
duplicates RTFACT-12259 Parallel push of docker images can ca... Resolved
Relationship
is related to RTFACT-13316 Uploading the same image concurrently... Resolved
Trigger
Assigned QA: Liza Dashevski (Inactive)

 Description   

Simultaneously uploading images with common layers can cause some of the pushes to fail.

To reproduce

1. Create an Artifactory instance with Docker
2. Tag the same image with three different tags so that they be pushed to Artifactory
3. Write a script that will push the image simultaneously
4. Run the script and notice the artifatory.log error and the client failures (time dependent so may need to delete uploaded image, remove from trash and re-run script.)

Sample Script

#!/bin/sh                                                                                                                                                                                    
docker push localhost/nginx > 1.out 2> 1.err &
docker push localhost/nginx-1 > 2.txt 2> 2.err &
docker push localhost/nginx-2 > 3.txt 2> 3.err &

Artifactory error/s

2017-01-05 20:56:12,874 [http-nio-8081-exec-3] [ERROR] (o.j.r.d.v.h.DockerManifestSyncer:69) - Could not find temp blob 'nginx-2/_uploads/sha256__51f5c6a04d83efd2d45c5fd59537218924bc46705e3de6ffc8bc07b51481610b'
2017-01-05 20:56:12,875 [http-nio-8081-exec-3] [ERROR] (o.j.r.d.v.r.h.DockerV2LocalRepoHandler:283) - Failed syncing manifest blobs, canceling manifest upload


 Comments   
Comment by stephen moon [ 25/Sep/17 ]

Please take a look this issue.

Generated at Wed Aug 21 00:33:26 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.