forked from TrueCloudLab/s3-tests
readwrite: dump a more meaningful message on md5 read error
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
a23c81187b
commit
d2c0ccd7b5
1 changed files with 3 additions and 1 deletions
|
@ -50,12 +50,14 @@ def reader(bucket, worker_id, file_names, queue, rand):
|
|||
end = time.time()
|
||||
|
||||
if not fp.valid():
|
||||
m='md5sum check failed start={s} ({se}) end={e} size={sz} obj={o}'.format(s=time.ctime(start), se=start, e=end, sz=fp.size, o=objname)
|
||||
result.update(
|
||||
error=dict(
|
||||
msg='md5sum check failed',
|
||||
msg=m,
|
||||
traceback=traceback.format_exc(),
|
||||
),
|
||||
)
|
||||
print "ERROR:", m
|
||||
else:
|
||||
elapsed = end - start
|
||||
result.update(
|
||||
|
|
Loading…
Reference in a new issue