PUT OBJECT COPY with zero-byte source object sometimes hangs
Applies to
StorageGRID 11.4
Issue
- S3 API
CopyObject
fails with zero-byte source object - Issuing
CopyObject
by curl freezes without error pop-ups:
$
...
curl -iksS -X PUT <url>/<destination-bucket>/<zero-byte-object-copy> -H content-length:0 -H x-amz-content-sha256:<content-sha256> -H x-amz-copy-source:/<source-bucket>/<zero-byte-object> -H x-amz-date:<YYYYmmddTHHMMSSZ> -H Authorization:AWS4-HMAC-SHA256 Credential=<credential>,SignedHeaders=<headers>,Signature=<signature>
^C << command hangs and is aborted manually
$
- Issuing
CopyObject
by AWS Command Line fails with errorRead timeout on endpoint URL
:
$ aws s3api --debug --endpoint-url <url> --no-verify-ssl copy-object --bucket <destination-bucket> --key <zero-byte-object-copy> --copy-source /<source-bucket>/<zero-byte-object>
...
Read timeout on endpoint URL:
"<url>/<destination-bucket>/<zero-byte-object-copy>"
$
CopyObject
succeeds with non-zero-byte source object- Issuing
s3 cp
command to copy a zero-byte file to a different name getsRead timed out
error:
DEBUG - retry needed, retryable exception caught: HTTPSConnectionPool(host='hostname', port=xxx): Read timed out. (read timeout=xx)