[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 (Inactive)
Resolution: Fixed Votes: 2
Labels: None
Remaining Estimate: 3 days
Time Spent: Not Specified
Original Estimate: 3 days

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
Estimated Resolution Quarter: Q4-17
Support Tickets:

IBM Cloud - Support Case, ezCater - Support Case, Autodesk Team 2 - Support Case, Doddle Parcel Services Ltd - Support Case, Salesforce - Support Case, Elbit Systems - Support Case

Product Backlog: 17-Q4-leaps
Product Comments: Already assigned for Q4-17 commitments.
Assigned QA: Liza Dashevski (Inactive)
Internal Priority: Normal
Internal Documentation: docRelNotes
Epic Link: Q4 Customer Commitments Leap 26
Sprint: Leap 26, Leap 28
Swimlane: Customer Issues
Reviewer:
Yuval Reches

 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 Mon Dec 16 11:41:24 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.