hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranith Sardar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-16228) Throwing OOM exception for ListStatus (v2) when using S3A
Date Thu, 04 Apr 2019 08:35:01 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-16228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809614#comment-16809614
] 

Ranith Sardar commented on HADOOP-16228:
----------------------------------------

Current trace:

Thread Stack
at java.lang.OutOfMemoryError.<init>()V (OutOfMemoryError.java:48) at java.util.Arrays.copyOf([BI)[B
(Arrays.java:3236) at java.lang.StringCoding.safeTrim([BILjava/nio/charset/Charset;Z)[B (StringCoding.java:79)
at java.lang.StringCoding.encode(Ljava/nio/charset/Charset;[CII)[B (StringCoding.java:365)
at java.lang.String.getBytes(Ljava/nio/charset/Charset;)[B (String.java:941) at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.sanitizeXmlDocument(Lorg/xml/sax/helpers/DefaultHandler;Ljava/io/InputStream;)Ljava/io/InputStream;
(XmlResponsesSaxParser.java:205) at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseListObjectsV2Response(Ljava/io/InputStream;Z)Lcom/amazonaws/services/s3/model/transform/XmlResponsesSaxParser$ListObjectsV2Handler;
(XmlResponsesSaxParser.java:334) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsV2Unmarshaller.unmarshall(Ljava/io/InputStream;)Lcom/amazonaws/services/s3/model/ListObjectsV2Result;
(Unmarshallers.java:88) at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsV2Unmarshaller.unmarshall(Ljava/lang/Object;)Ljava/lang/Object;
(Unmarshallers.java:77) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(Lcom/amazonaws/http/HttpResponse;)Lcom/amazonaws/AmazonWebServiceResponse;
(S3XmlResponseHandler.java:62) at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(Lcom/amazonaws/http/HttpResponse;)Ljava/lang/Object;
(S3XmlResponseHandler.java:31) at com.amazonaws.http.response.AwsResponseHandlerAdapter.handle(Lcom/amazonaws/http/HttpResponse;)Ljava/lang/Object;
(AwsResponseHandlerAdapter.java:70) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleResponse(Lcom/amazonaws/http/HttpResponse;)Ljava/lang/Object;
(AmazonHttpClient.java:1554) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(Lcom/amazonaws/http/AmazonHttpClient$RequestExecutor$ExecOneRequestParams;)Lcom/amazonaws/Response;
(AmazonHttpClient.java:1272) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper()Lcom/amazonaws/Response;
(AmazonHttpClient.java:1056) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute()Lcom/amazonaws/Response;
(AmazonHttpClient.java:743) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer()Lcom/amazonaws/Response;
(AmazonHttpClient.java:717) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute()Lcom/amazonaws/Response;
(AmazonHttpClient.java:699) at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(Lcom/amazonaws/http/AmazonHttpClient$RequestExecutor;)Lcom/amazonaws/Response;
(AmazonHttpClient.java:667) at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(Lcom/amazonaws/http/HttpResponseHandler;)Lcom/amazonaws/Response;
(AmazonHttpClient.java:649) at com.amazonaws.http.AmazonHttpClient.execute(Lcom/amazonaws/Request;Lcom/amazonaws/http/HttpResponseHandler;Lcom/amazonaws/http/HttpResponseHandler;Lcom/amazonaws/http/ExecutionContext;)Lcom/amazonaws/Response;
(AmazonHttpClient.java:513) at com.amazonaws.services.s3.AmazonS3Client.invoke(Lcom/amazonaws/Request;Lcom/amazonaws/http/HttpResponseHandler;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/Object;
(AmazonS3Client.java:4325) at com.amazonaws.services.s3.AmazonS3Client.invoke(Lcom/amazonaws/Request;Lcom/amazonaws/http/HttpResponseHandler;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
(AmazonS3Client.java:4272) at com.amazonaws.services.s3.AmazonS3Client.invoke(Lcom/amazonaws/Request;Lcom/amazonaws/transform/Unmarshaller;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
(AmazonS3Client.java:4266) at com.amazonaws.services.s3.AmazonS3Client.listObjectsV2(Lcom/amazonaws/services/s3/model/ListObjectsV2Request;)Lcom/amazonaws/services/s3/model/ListObjectsV2Result;
(AmazonS3Client.java:876) at org.apache.hadoop.fs.s3a.S3AFileSystem.lambda$continueListObjects$6(Lorg/apache/hadoop/fs/s3a/S3ListResult;Lorg/apache/hadoop/fs/s3a/S3ListRequest;)Lorg/apache/hadoop/fs/s3a/S3ListResult;
(S3AFileSystem.java:1303) at org.apache.hadoop.fs.s3a.S3AFileSystem$$Lambda$18.execute()Ljava/lang/Object;
(Unknown Source) at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Ljava/lang/String;ZLorg/apache/hadoop/fs/s3a/Invoker$Retried;Lorg/apache/hadoop/fs/s3a/Invoker$Operation;)Ljava/lang/Object;
(Invoker.java:317) at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Ljava/lang/String;ZLorg/apache/hadoop/fs/s3a/Invoker$Operation;)Ljava/lang/Object;
(Invoker.java:280) at org.apache.hadoop.fs.s3a.S3AFileSystem.continueListObjects(Lorg/apache/hadoop/fs/s3a/S3ListRequest;Lorg/apache/hadoop/fs/s3a/S3ListResult;)Lorg/apache/hadoop/fs/s3a/S3ListResult;
(S3AFileSystem.java:1292) at org.apache.hadoop.fs.s3a.Listing$ObjectListingIterator.next()Lorg/apache/hadoop/fs/s3a/S3ListResult;
(Listing.java:600)

> Throwing OOM exception for ListStatus (v2) when using S3A 
> ----------------------------------------------------------
>
>                 Key: HADOOP-16228
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16228
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Ranith Sardar
>            Priority: Major
>
> {code:java}
>  @InterfaceStability.Unstable
>   public static final String LIST_VERSION = "fs.s3a.list.version";
>   @InterfaceStability.Unstable
>   public static final int DEFAULT_LIST_VERSION = 2;
> {code}
> If the files in the bucket are more than 1k, it will throw OOM error for V2 version.
> Exception:
> Caused by: com.amazonaws.SdkClientException: Failed to sanitize XML document destined
for handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$ListObjectsV2Handler
> at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.sanitizeXmlDocument(XmlResponsesSaxParser.java:219)
> at com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser.parseListObjectsV2Response(XmlResponsesSaxParser.java:334)
> at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsV2Unmarshaller.unmarshall(Unmarshallers.java:88)
> at com.amazonaws.services.s3.model.transform.Unmarshallers$ListObjectsV2Unmarshaller.unmarshall(Unmarshallers.java:77)
> at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:62)
> at com.amazonaws.services.s3.internal.S3XmlResponseHandler.handle(S3XmlResponseHandler.java:31)
> at com.amazonaws.http.response.AwsResponseHandlerAdapter.handle(AwsResponseHandlerAdapter.java:70)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleResponse(AmazonHttpClient.java:1554)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1272)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1056)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:743)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:717)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:699)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:667)
> at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:649)
> at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:513)
> at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4325)
> at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4272)
> at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4266)
> at com.amazonaws.services.s3.AmazonS3Client.listObjectsV2(AmazonS3Client.java:876)
> at org.apache.hadoop.fs.s3a.S3AFileSystem.lambda$continueListObjects$6(S3AFileSystem.java:1303)
> at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:317)
> at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:280)
> at org.apache.hadoop.fs.s3a.S3AFileSystem.continueListObjects(S3AFileSystem.java:1292)
> at org.apache.hadoop.fs.s3a.Listing$ObjectListingIterator.next(Listing.java:600)
> ... 15 more
> Caused by: java.lang.OutOfMemoryError: Java heap space



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message