[
https://issues.apache.org/jira/browse/HADOOP-17335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17235319#comment-17235319
]
Mukund Thakur commented on HADOOP-17335:
----------------------------------------
Seeing this exception when closing the file system while listing is running.
{code:java}
java.io.InterruptedIOException: listObjects() on
s3a://mthakur-data/test/testMultiPagesListingPerformanceAndCorrectness:
com.amazonaws.AbortedException: java.io.InterruptedIOException: listObjects()
on s3a://mthakur-data/test/testMultiPagesListingPerformanceAndCorrectness:
com.amazonaws.AbortedException: at
org.apache.hadoop.fs.s3a.S3AUtils.translateInterruptedException(S3AUtils.java:388)
at org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:195) at
org.apache.hadoop.fs.s3a.S3AUtils.translateException(S3AUtils.java:169) at
org.apache.hadoop.fs.s3a.Listing$ObjectListingIterator.next(Listing.java:881)
at
org.apache.hadoop.fs.s3a.Listing$FileStatusListingIterator.requestNextBatch(Listing.java:680)
at
org.apache.hadoop.fs.s3a.Listing$FileStatusListingIterator.sourceHasNext(Listing.java:625)
at
org.apache.hadoop.fs.s3a.Listing$FileStatusListingIterator.hasNext(Listing.java:620)
at
org.apache.hadoop.fs.s3a.Listing$LocatedFileStatusIterator.hasNext(Listing.java:987)
at
org.apache.hadoop.fs.s3a.Listing$TombstoneReconcilingIterator.fetch(Listing.java:1024)
at
org.apache.hadoop.fs.s3a.Listing$TombstoneReconcilingIterator.next(Listing.java:1045)
at
org.apache.hadoop.fs.s3a.Listing$TombstoneReconcilingIterator.next(Listing.java:1003)
at org.apache.hadoop.fs.s3a.S3AFileSystem$3.next(S3AFileSystem.java:4316) at
org.apache.hadoop.fs.s3a.S3AFileSystem$3.next(S3AFileSystem.java:4308) at
org.apache.hadoop.fs.s3a.scale.ITestS3ADirectoryPerformance.testMultiPagesListingPerformanceAndCorrectness(ITestS3ADirectoryPerformance.java:206)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.lang.Thread.run(Thread.java:748)Caused by: com.amazonaws.AbortedException:
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleInterruptedException(AmazonHttpClient.java:836)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:728)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:686)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:668)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:532) at
com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:512) at
com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4920) at
com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4866) at
com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4860) at
com.amazonaws.services.s3.AmazonS3Client.listObjectsV2(AmazonS3Client.java:923)
at
org.apache.hadoop.fs.s3a.S3AFileSystem.lambda$continueListObjects$8(S3AFileSystem.java:2039)
at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:407) at
org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:370) at
org.apache.hadoop.fs.s3a.S3AFileSystem.continueListObjects(S3AFileSystem.java:2028)
at
org.apache.hadoop.fs.s3a.S3AFileSystem$ListingOperationCallbacksImpl.lambda$continueListObjectsAsync$1(S3AFileSystem.java:1671)
at
org.apache.hadoop.fs.s3a.impl.CallableSupplier.get(CallableSupplier.java:62) at
java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 moreCaused by: com.amazonaws.http.timers.client.SdkInterruptedException
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.checkInterrupted(AmazonHttpClient.java:891)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.checkInterrupted(AmazonHttpClient.java:877)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1071)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:770)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:744)
at
com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:726)
... 18 more
{code}
> s3a listing operation will fail in async prefetch if fs closed
> --------------------------------------------------------------
>
> Key: HADOOP-17335
> URL: https://issues.apache.org/jira/browse/HADOOP-17335
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.4.0
> Reporter: Steve Loughran
> Assignee: Mukund Thakur
> Priority: Major
>
> The async prefetch logic in the S3A listing code gets into trouble if the FS
> closed and there was an async listing in progress.
> In this situation we should think about recognising and converting into some
> FS-is-closed exception
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]