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

Steve Loughran commented on HADOOP-16413:
-----------------------------------------

{code}
[ERROR] 
testSelectWithNoVersionMetadata[versionid-client-auth-false](org.apache.hadoop.fs.s3a.ITestS3ARemoteFileChanged)
  Time elapsed: 1.424 s  <<< 
ERROR!org.apache.hadoop.fs.FileAlreadyExistsException: 
s3a://hwdev-steve-ireland-new/fork-0007/test/selectnoversion.dat already exists
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.create(S3AFileSystem.java:1061)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:1136)
        at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:1116)
        at 
org.apache.hadoop.fs.contract.ContractTestUtils.writeDataset(ContractTestUtils.java:182)
        at 
org.apache.hadoop.fs.contract.ContractTestUtils.writeDataset(ContractTestUtils.java:151)
        at 
org.apache.hadoop.fs.s3a.ITestS3ARemoteFileChanged.writeFileWithNoVersionMetadata(ITestS3ARemoteFileChanged.java:1124)
        at 
org.apache.hadoop.fs.s3a.ITestS3ARemoteFileChanged.testSelectWithNoVersionMetadata(ITestS3ARemoteFileChanged.java:516)
        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)
        a
{code}

> ITestS3ARemoteFileChanged doesn't overwrite test data creation
> --------------------------------------------------------------
>
>                 Key: HADOOP-16413
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16413
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3, test
>    Affects Versions: 3.3.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> The tests in {{ITestS3ARemoteFileChanged}} write files with overwrite = 
> false, and so when run against a store which (for any reason) already has 
> those files, the tests fail.



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

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

Reply via email to