Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 md5 hash fails #363

Open
MostafaNabi opened this issue Oct 17, 2017 · 3 comments
Open

S3 md5 hash fails #363

MostafaNabi opened this issue Oct 17, 2017 · 3 comments

Comments

@MostafaNabi
Copy link

Hello,

I've been getting md5 errors where the hashes do not match. See the error stack below.

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. at com.amazonaws.services.s3.internal.DigestValidationInputStream.validateMD5Digest(DigestValidationInputStream.java:79) at com.amazonaws.services.s3.internal.DigestValidationInputStream.read(DigestValidationInputStream.java:61) at com.amazonaws.internal.SdkFilterInputStream.read(SdkFilterInputStream.java:72) at com.amazonaws.services.s3.model.S3ObjectInputStream.read(S3ObjectInputStream.java:155) at com.amazonaws.services.s3.model.S3ObjectInputStream.read(S3ObjectInputStream.java:147) at com.intel.cosbench.driver.operator.Reader.copyLarge(Reader.java:120) at com.intel.cosbench.driver.operator.Reader.doRead(Reader.java:92) at com.intel.cosbench.driver.operator.Reader.operate(Reader.java:69) at com.intel.cosbench.driver.operator.AbstractOperator.operate(AbstractOperator.java:76) at com.intel.cosbench.driver.agent.WorkAgent.performOperation(WorkAgent.java:197) at com.intel.cosbench.driver.agent.WorkAgent.doWork(WorkAgent.java:177) at com.intel.cosbench.driver.agent.WorkAgent.execute(WorkAgent.java:134) at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:44) at com.intel.cosbench.driver.agent.AbstractAgent.call(AbstractAgent.java:1) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622) at java.lang.Thread.run(Thread.java:748)

I have tried on a Scality S3 server and a CEPH cluster and the error was consistent.
I saw this thread on the github here: #320
and the issue seems to be same as mine. I also noticed the more workers I have the lower my succes ratio, with a 100% success ratio for one worker.

I turned off the md5 checks and got a 100% success ratio.
My question is does anyone know why the checks fail?

My config file:

<workstage name="prepare">
  <work type="prepare" workers="16" config="cprefix=s3testqwer;containers=r(1,20);objects=r(1,100);sizes=c(64)MB" />
</workstage>

<workstage name="main">
  <work name="main" workers="16" runtime="30">
    <operation type="read" ratio="80" config="cprefix=s3testqwer;containers=u(1,20);objects=u(1,100)" />
    <operation type="write" ratio="20" config="cprefix=s3testqwer;containers=u(1,20);objects=u(101,150);sizes=c(64)MB" />
  </work>
</workstage>

<workstage name="cleanup">
  <work type="cleanup" workers="1" config="cprefix=s3testqwer;containers=r(1,20);objects=r(1,150)" />
</workstage>

<workstage name="dispose">
  <work type="dispose" workers="1" config="cprefix=s3testqwer;containers=r(1,20)" />
</workstage>
@merrett
Copy link

merrett commented Nov 21, 2017

Same issue here.

@MostafaNabi
Copy link
Author

@merrett Did you find a solution to the problem?

@merrett
Copy link

merrett commented Dec 1, 2017

I just had to turn the MD5 off.

edit cosbench-start.sh

find the java start line and add
"-Dcom.amazonaws.services.s3.disableGetObjectMD5Validation=true"

so you have:

/usr/bin/nohup java -Dcom.amazonaws.services.s3.disableGetObjectMD5Validation=true -Dcosbench.tomcat.config=$TOMCAT_CONFIG -server -cp main/* org.eclipse.equinox.launcher.Main -configuration $OSGI_CONFIG -console $OSGI_CONSOLE_PORT 1 > $BOOT_LOG 2>&1 &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants