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

Steve Loughran commented on HADOOP-14494:
-----------------------------------------

stack
{code}
        at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at 
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)

testOutputStreamClosedTwice(org.apache.hadoop.fs.s3native.ITestJets3tNativeS3FileSystemContract)
  Time elapsed: 0.005 sec  <<< ERROR!
java.lang.NullPointerException: null
        at 
org.apache.hadoop.fs.s3native.Jets3tNativeFileSystemStore.purge(Jets3tNativeFileSystemStore.java:368)
        at 
org.apache.hadoop.fs.s3native.NativeS3FileSystemContractBaseTest.tearDown(NativeS3FileSystemContractBaseTest.java:59)
        at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
        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.RunAfters.evaluate(RunAfters.java:33)
        at 
org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)
{code}


> ITestJets3tNativeS3FileSystemContract tests NPEs in teardown if store 
> undefined
> -------------------------------------------------------------------------------
>
>                 Key: HADOOP-14494
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14494
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/s3, test
>    Affects Versions: 3.0.0-alpha3
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>
> the move to junit 4 causes the {{.ITestJets3tNativeS3FileSystemContract} 
> tests to NPE in teardown if you don't actually declare an s3n test bucket.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to