Bug 1336931

Summary: rgw: multipart object corruption when uploading the same part concurrently
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Yehuda Sadeh <yehuda>
Component: RGWAssignee: Orit Wasserman <owasserm>
Status: CLOSED ERRATA QA Contact: rakesh-gm <rgowdege>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.3.2CC: cbodley, ceph-eng-bugs, gmeno, hnallurv, kbader, kdreyer, mbenjamin, owasserm, sweil, vakulkar
Target Milestone: rc   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1336933 (view as bug list) Environment:
Last Closed: 2016-08-23 19:38:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1336933, 1343229    

Description Yehuda Sadeh 2016-05-17 20:28:33 UTC
Description of problem:

There's a certain scenario where a user can create corrupted multipart objects, by concurrent upload of the same part.


Version-Release number of selected component (if applicable):
1.3.x, 2.0

How reproducible:
always -- if done correctly


Steps to Reproduce:
1. initiate multipart upload
2. start uploading part (first upload)
3. start uploading the same part (second upload)
4. finish uploading the part (second upload)
5. finish uploading the part (first upload)
6. complete multipart upload
7. read object

Actual results:
object is corrupted

Expected results:
object should not be corrupted


Additional info:

Comment 6 Ken Dreyer (Red Hat) 2016-06-14 16:21:31 UTC
We will take this change in as part of the rebase to ceph 10.2.2.

Comment 8 rakesh-gm 2016-08-04 13:46:14 UTC
Ran the automated suite from here https://github.com/ceph/s3-tests
the test related to this is : https://github.com/ceph/s3-tests/blob/master/s3tests/functional/test_s3.py#L5907

the test passed and hence marking this test case as verified.

Comment 10 errata-xmlrpc 2016-08-23 19:38:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-1755.html