I am using Ignite 1.5.0.final on RHEL6 over JRE8.
I have an initialized IGFS filesystem with a seconday backup store as the
local filesystem
and have create a path (directory) *a/b/c/d*.
I am trying to write content to a (non-existent) file file as follows:
* IgniteFileSystem fs = ...;
IgfsPath folder = new IgfsPath("a/b/c/d");
IgfsPath filex = new IgfsPath(folder, "myFile");
final Boolean create_file_if_not_existent = true;
/ try (OutputStream out = fs.append(path, create_file_if_not_existent)) {
// << Exception here
/ out.write(data);
}
*
The fs.append(...) above issues an exception
/ Failed to append to the file due to secondary file system exception:
/a/b/c/d/myFile
/
The full stack trace is as shown below.
What could be going wrong? Any hints appreciated.
*
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to append
to the file due to secondary file system exception: /a/b/c/d/myFile
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager$6.onFailure(IgfsMetaManager.java:2137)
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager$6.onFailure(IgfsMetaManager.java:2077)
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager.synchronizeAndExecute(IgfsMetaManager.java:2870)
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager.synchronizeAndExecute(IgfsMetaManager.java:2665)
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager.appendDual(IgfsMetaManager.java:2142)
at
org.apache.ignite.internal.processors.igfs.IgfsImpl$16.call(IgfsImpl.java:1066)
at
org.apache.ignite.internal.processors.igfs.IgfsImpl$16.call(IgfsImpl.java:1051)
at
org.apache.ignite.internal.processors.igfs.IgfsImpl.safeOp(IgfsImpl.java:1930)
... 17 more
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create
path locally due to secondary file system exception: /a/b/c/d/myFile
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager.synchronize(IgfsMetaManager.java:2619)
at
org.apache.ignite.internal.processors.igfs.IgfsMetaManager.synchronizeAndExecute(IgfsMetaManager.java:2823)
... 22 more*
Thanks!
/kobe
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/IGFS-Writing-to-a-nonexistent-file-will-not-create-the-file-tp3065.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.