mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 23:29:47 +00:00
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()
|
end = time.time()
|
||||||
|
|
||||||
if not fp.valid():
|
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(
|
result.update(
|
||||||
error=dict(
|
error=dict(
|
||||||
msg='md5sum check failed',
|
msg=m,
|
||||||
traceback=traceback.format_exc(),
|
traceback=traceback.format_exc(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
print "ERROR:", m
|
||||||
else:
|
else:
|
||||||
elapsed = end - start
|
elapsed = end - start
|
||||||
result.update(
|
result.update(
|
||||||
|
|
Loading…
Reference in a new issue