You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Lei (Eddy) Xu (JIRA)" <ji...@apache.org> on 2015/07/29 22:28:06 UTC

[jira] [Resolved] (HADOOP-12267) s3a failure due to integer overflow bug in AWS SDK

     [ https://issues.apache.org/jira/browse/HADOOP-12267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lei (Eddy) Xu resolved HADOOP-12267.
------------------------------------
    Resolution: Duplicate

Hi, [~fabbri] As we discussed offline, we will close this as duplicated to HADOOP-12269. Lets bump aws-sdk version in both trunk and branch-2 in HADOOP-12269. 

Thanks again for this effort.

> s3a failure due to integer overflow bug in AWS SDK
> --------------------------------------------------
>
>                 Key: HADOOP-12267
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12267
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/s3
>    Affects Versions: 2.6.0
>            Reporter: Aaron Fabbri
>            Assignee: Aaron Fabbri
>         Attachments: HADOOP-12267.2.003.patch
>
>
> Under high load writing to Amazon AWS S3 storage, a client can be throttled enough to encounter 24 retries in a row.
> The amazon http client code (in aws-java-sdk jar) has a bug in its exponential backoff retry code, that causes integer overflow, and a call to Thread.sleep() with a negative value, which causes client to bail out with an exception (see below).
> Bug has been fixed in aws-java-sdk:
> https://github.com/aws/aws-sdk-java/pull/388
> We need to pick this up for hadoop-tools/hadoop-aws.
> Error: java.io.IOException: File copy failed: hdfs://path-redacted --> s3a://path-redacted
> at org.apache.hadoop.tools.mapred.CopyMapper.copyFileWithRetry(CopyMapper.java:284)
> at org.apache.hadoop.tools.mapred.CopyMapper.map(CopyMapper.java:252) 
> at org.apache.hadoop.tools.mapred.CopyMapper.map(CopyMapper.java:50)  
> at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145) 
> at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:784)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) 
> at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
> at java.security.AccessController.doPrivileged(Native Method) 
> at javax.security.auth.Subject.doAs(Subject.java:415) 
> at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1642)
> at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163) Caused by: java.io.IOException: Couldn't run retriable-command: Copying hdfs://path-redacted to s3a://path-redacted
> at org.apache.hadoop.tools.util.RetriableCommand.execute(RetriableCommand.java:101) 
> at org.apache.hadoop.tools.mapred.CopyMapper.copyFileWithRetry(CopyMapper.java:280) 
> ... 10 more 
> Caused by: com.amazonaws.AmazonClientException: Unable to complete transfer: timeout value is negative
> at com.amazonaws.services.s3.transfer.internal.AbstractTransfer.unwrapExecutionException(AbstractTransfer.java:300)
> at com.amazonaws.services.s3.transfer.internal.AbstractTransfer.rethrowExecutionException(AbstractTransfer.java:284)
> at com.amazonaws.services.s3.transfer.internal.CopyImpl.waitForCopyResult(CopyImpl.java:67) 
> at org.apache.hadoop.fs.s3a.S3AFileSystem.copyFile(S3AFileSystem.java:943) 
> at org.apache.hadoop.fs.s3a.S3AFileSystem.rename(S3AFileSystem.java:357) 
> at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.promoteTmpToTarget(RetriableFileCopyCommand.java:220)
> at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doCopy(RetriableFileCopyCommand.java:137) 
> at org.apache.hadoop.tools.mapred.RetriableFileCopyCommand.doExecute(RetriableFileCopyCommand.java:100)
> at org.apache.hadoop.tools.util.RetriableCommand.execute(RetriableCommand.java:87) 
> ... 11 more 
> Caused by: java.lang.IllegalArgumentException: timeout value is negative
> at java.lang.Thread.sleep(Native Method) 
> at com.amazonaws.http.AmazonHttpClient.pauseBeforeNextRetry(AmazonHttpClient.java:864)
> at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:353) 
> at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:232) 
> at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3528)
> at com.amazonaws.services.s3.AmazonS3Client.copyObject(AmazonS3Client.java:1507)
> at com.amazonaws.services.s3.transfer.internal.CopyCallable.copyInOneChunk(CopyCallable.java:143)
> at com.amazonaws.services.s3.transfer.internal.CopyCallable.call(CopyCallable.java:131) 
> at com.amazonaws.services.s3.transfer.internal.CopyMonitor.copy(CopyMonitor.java:189) 
> at com.amazonaws.services.s3.transfer.internal.CopyMonitor.call(CopyMonitor.java:134) 
> at com.amazonaws.services.s3.transfer.internal.CopyMonitor.call(CopyMonitor.java:46)  
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) 
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
> at java.lang.Thread.run(Thread.java:745) 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)