[
https://issues.apache.org/jira/browse/HADOOP-15050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257357#comment-16257357
]
Steve Loughran commented on HADOOP-15050:
-----------------------------------------
The new builder API is still unstable. We need to mention that in the release
notes of 2.9.0 & 3.0
{code}
testOverwriteExistingFile(org.apache.hadoop.fs.swift.contract.TestSwiftContractCreate)
Time elapsed: 13.61 sec <<< ERROR!
java.io.IOException: createNonRecursive unsupported for this filesystem class
org.apache.hadoop.fs.swift.snative.SwiftNativeFileSystem
at
org.apache.hadoop.fs.FileSystem.createNonRecursive(FileSystem.java:1297)
at
org.apache.hadoop.fs.FileSystem$FileSystemDataOutputStreamBuilder.build(FileSystem.java:4147)
at
org.apache.hadoop.fs.contract.ContractTestUtils.writeDataset(ContractTestUtils.java:179)
at
org.apache.hadoop.fs.contract.AbstractContractCreateTest.testOverwriteExistingFile(AbstractContractCreateTest.java:103)
at
org.apache.hadoop.fs.contract.AbstractContractCreateTest.testOverwriteExistingFile(AbstractContractCreateTest.java:121)
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.r
{code}
> swift:// doesn't support createNonRecursive. hence the new FS
> createFile(path) builder
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-15050
> URL: https://issues.apache.org/jira/browse/HADOOP-15050
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/swift
> Affects Versions: 2.9.0
> Reporter: Steve Loughran
>
> swift throws an exception in createNonRecursive(), so fails to work with the
> new {{FileSystem.createFile(path)}} which uses that mode by default (because
> its the right thing to do :)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]