Streaming reads of an object sometimes truncates silently
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-swiftclient |
New
|
Undecided
|
Unassigned |
Bug Description
When streaming an object from Swift in chunks, it will sometimes silently finish even though not all bytes have been read. It's unclear what circumstances causes this to happen, but we've had this happen in a production environment a non-trivial number of times.
Using python-swiftclient 3.4.0. Here is a code sample where we've since added an MD5 check after reads to ensure what we've read matches what is on Swift:
CHUNK_SIZE = 8388608
ret_url, token = swift_auth(
metadata, data = swift.get_
read_
data_chunk = data.read(
read_
while data_chunk:
data_chunk = data.read(
assert metadata.
Unsure if this is the same issue as https:/