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

Steve Loughran commented on HADOOP-15651:
-----------------------------------------

Stack; test log will go in output. Endpoint: us-west-1; test run 
{{-Dparallel-tests -DtestsThreadCount=8  }}. Bucket always has DDB enabled.

{code}
[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 27.63 s 
<<< FAILURE! - in org.apache.hadoop.fs.s3a.ITestS3AInconsistency
[ERROR] testOpenFailOnRead(org.apache.hadoop.fs.s3a.ITestS3AInconsistency)  
Time elapsed: 17.242 s  <<< ERROR!
java.lang.NullPointerException
        at 
org.apache.hadoop.fs.s3a.S3AInputStream.lambda$read$2(S3AInputStream.java:368)
        at org.apache.hadoop.fs.s3a.Invoker.once(Invoker.java:109)
        at org.apache.hadoop.fs.s3a.Invoker.lambda$retry$3(Invoker.java:260)
        at org.apache.hadoop.fs.s3a.Invoker.retryUntranslated(Invoker.java:317)
        at org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:256)
        at org.apache.hadoop.fs.s3a.Invoker.retry(Invoker.java:231)
        at org.apache.hadoop.fs.s3a.S3AInputStream.read(S3AInputStream.java:364)
        at java.io.FilterInputStream.read(FilterInputStream.java:83)
        at 
org.apache.hadoop.fs.s3a.ITestS3AInconsistency.doOpenFailOnReadTest(ITestS3AInconsistency.java:180)
        at 
org.apache.hadoop.fs.s3a.ITestS3AInconsistency.testOpenFailOnRead(ITestS3AInconsistency.java:162)
        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:47)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
        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$StatementThread.run(FailOnTimeout.java:74)
{code}



> NPE in S3AInputStream.read() in ITestS3AInconsistency.testOpenFailOnRead
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-15651
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15651
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3, test
>    Affects Versions: 3.2.0
>            Reporter: Steve Loughran
>            Priority: Major
>
> Test {{ITestS3AInconsistency.testOpenFailOnRead()}} raise an NPE in read(); 
> could only happen on that line if {{wrappedStream==null}}, which implies that 
> previous attempts to re-open the closed stream failed and that this didn't 
> trigger anything.
> Not seen this before, but given that the fault injection is random, it may be 
> that so far test runs have been *unlucky* and missed this.



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

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

Reply via email to