Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8A53817EB1 for ; Fri, 8 May 2015 17:22:29 +0000 (UTC) Received: (qmail 34437 invoked by uid 500); 8 May 2015 17:22:29 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 34402 invoked by uid 500); 8 May 2015 17:22:29 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 34393 invoked by uid 99); 8 May 2015 17:22:29 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 17:22:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0A2FD1A2494 for ; Fri, 8 May 2015 17:22:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.209 X-Spam-Level: X-Spam-Status: No, score=-3.209 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kW4tqQQa1YPY for ; Fri, 8 May 2015 17:22:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 8F029474C5 for ; Fri, 8 May 2015 17:22:21 +0000 (UTC) Received: (qmail 33999 invoked by uid 99); 8 May 2015 17:22:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 17:22:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 092D5E4450; Fri, 8 May 2015 17:22:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Fri, 08 May 2015 17:22:34 -0000 Message-Id: In-Reply-To: <1ae147255ede46cbb86b99c4d061b9a2@git.apache.org> References: <1ae147255ede46cbb86b99c4d061b9a2@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [15/50] [abbrv] incubator-ignite git commit: #ignite-841: Change igfs exception in case of one client node. #ignite-841: Change igfs exception in case of one client node. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/a33d3d49 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/a33d3d49 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/a33d3d49 Branch: refs/heads/ignite-37 Commit: a33d3d49f675acd10e82100aa5a7f3378d11fdd1 Parents: 4accd3a Author: ivasilinets Authored: Wed May 6 15:27:45 2015 +0300 Committer: ivasilinets Committed: Wed May 6 15:27:45 2015 +0300 ---------------------------------------------------------------------- .../dht/GridPartitionedGetFuture.java | 2 +- .../internal/processors/igfs/IgfsUtils.java | 11 +- .../processors/igfs/IgfsOneClientNodeTest.java | 133 +++++++++++++++++++ .../ignite/testsuites/IgniteIgfsTestSuite.java | 1 + 4 files changed, 143 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a33d3d49/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedGetFuture.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedGetFuture.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedGetFuture.java index 35ba2a9..2f41e63 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedGetFuture.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/GridPartitionedGetFuture.java @@ -270,7 +270,7 @@ public class GridPartitionedGetFuture extends GridCompoundIdentityFuture() { + @Override public Object call() throws Exception { + IgfsAbstractSelfTest.create(igfs, new IgfsPath[]{new IgfsPath("/dir")}, null); + return null; + } + }, IgfsException.class, "Cache server nodes not found."); + + GridTestUtils.assertThrows(log, new Callable() { + @Override public Object call() throws Exception { + IgfsPath FILE = new IgfsPath(new IgfsPath("/dir"), "file"); + + igfs.delete(FILE, false); + + return null; + } + }, IgfsException.class, "Cache server nodes not found."); + + GridTestUtils.assertThrows(log, new Callable() { + @Override public Object call() throws Exception { + IgfsPath FILE = new IgfsPath(new IgfsPath("/dir"), "file"); + + igfs.append(FILE, true); + + return null; + } + }, IgfsException.class, "Cache server nodes not found."); + } +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/a33d3d49/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIgfsTestSuite.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIgfsTestSuite.java b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIgfsTestSuite.java index 4f3178e..f8dac3d 100644 --- a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIgfsTestSuite.java +++ b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIgfsTestSuite.java @@ -60,6 +60,7 @@ public class IgniteIgfsTestSuite extends TestSuite { suite.addTest(new TestSuite(IgfsDualAsyncSelfTest.class)); suite.addTest(new TestSuite(IgfsClientCacheSelfTest.class)); + suite.addTest(new TestSuite(IgfsOneClientNodeTest.class)); suite.addTest(new TestSuite(IgfsModeResolverSelfTest.class));