COSBench测试异常终止的解决方法
问题现象描述
COSBench校验数据完整性失败导致测试终止。
关键过程、根本原因分析
COSBench校验数据MD5失败,导致测试终止。
结论、解决方案及效果
- 查看COSBench log。
vim /path/to/cosbench/archive/workload/workload.log
发现以下错误信息:[ERROR] [ErrorStatistics] - error code: N/A occurred 7 times, fail to operate: test4/myobjects59, test4/myobjects59, test4/myobjects1699, test1/myobjects2686, test3/myobjects10623, test4/myobjects10624, test1/myobjects26871 com.amazonaws.AmazonClientException: Unable to verify integrity of data download. Client calculated content hash didn't match hash calculated by Amazon S3. The data may be corrupt.
- 关闭MD5校验,在/path/to/cosbench/cosbench-start.sh脚本中的java命令行加入以下参数:
-Dcom.amazonaws.services.s3.disableGetObjectMD5Validation=true
- 重启所有COSBench进程。