versitygw
versitygw copied to clipboard
concurrent uploading the same object sometimes results in the exception ExistingObjectIsDirectory
Describe the bug concurrent uploading the same object sometimes results in the exception ExistingObjectIsDirectory. See script below
To Reproduce #!/bin/bash
printf "abc\n" >body.txt
for ((ii=1; ii<=10; ii++)); do aws s3api put-object --endpoint-url http://10.60.0.32:7070/ --region us-east-1 --bucket test --key=object1 --body body.txt & done
wait
OUTPUT: { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" }
An error occurred (ExistingObjectIsDirectory) when calling the PutObject operation: Existing Object is a directory. { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" } { "ETag": "0bee89b07a248e27c83fc3d5951213c1" }
Expected behavior object upload to complete without error
Server Version git clone from 25 sep
Additional context