Return-Path: X-Original-To: apmail-ignite-user-archive@minotaur.apache.org Delivered-To: apmail-ignite-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6FCBA186AE for ; Wed, 17 Feb 2016 23:01:18 +0000 (UTC) Received: (qmail 38717 invoked by uid 500); 17 Feb 2016 23:01:18 -0000 Delivered-To: apmail-ignite-user-archive@ignite.apache.org Received: (qmail 38675 invoked by uid 500); 17 Feb 2016 23:01:18 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 38664 invoked by uid 99); 17 Feb 2016 23:01:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Feb 2016 23:01:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E025FC0CF6 for ; Wed, 17 Feb 2016 23:01:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.972 X-Spam-Level: X-Spam-Status: No, score=0.972 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id VakLb_Tol0zo for ; Wed, 17 Feb 2016 23:01:15 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 759935F5CD for ; Wed, 17 Feb 2016 23:01:15 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 9FC9520F78A0 for ; Wed, 17 Feb 2016 14:54:32 -0800 (PST) Date: Wed, 17 Feb 2016 14:49:18 -0800 (PST) From: Kobe To: user@ignite.apache.org Message-ID: <1455749358346-3065.post@n6.nabble.com> Subject: IGFS: Writing to a nonexistent file will not create the file? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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.