From d2c0ccd7b55f1f47408f1d44807a92243c3c27bf Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 26 Aug 2014 14:03:47 -0700 Subject: [PATCH] readwrite: dump a more meaningful message on md5 read error Signed-off-by: Yehuda Sadeh --- s3tests/readwrite.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s3tests/readwrite.py b/s3tests/readwrite.py index c2ab0ed..c7b0907 100644 --- a/s3tests/readwrite.py +++ b/s3tests/readwrite.py @@ -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(