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 F20CC10CB0 for ; Fri, 17 Apr 2015 11:01:33 +0000 (UTC) Received: (qmail 65745 invoked by uid 500); 17 Apr 2015 11:01:33 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 65718 invoked by uid 500); 17 Apr 2015 11:01:33 -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 65709 invoked by uid 99); 17 Apr 2015 11:01:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 11:01:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 11:01:29 +0000 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 CB5FC453FB for ; Fri, 17 Apr 2015 11:01:07 +0000 (UTC) Received: (qmail 65261 invoked by uid 99); 17 Apr 2015 11:01:07 -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, 17 Apr 2015 11:01:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 331FEE054C; Fri, 17 Apr 2015 11:01:07 +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, 17 Apr 2015 11:01:17 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [12/17] incubator-ignite git commit: #ignite-743: IsolatedUpdater should wait cache started. X-Virus-Checked: Checked by ClamAV on apache.org #ignite-743: IsolatedUpdater should wait cache started. Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/ecf963e4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/ecf963e4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/ecf963e4 Branch: refs/heads/ignite-sprint-4 Commit: ecf963e4de1cc508d213170802515a20d7543396 Parents: 8ee275f Author: ivasilinets Authored: Wed Apr 15 14:54:48 2015 +0300 Committer: ivasilinets Committed: Wed Apr 15 14:54:48 2015 +0300 ---------------------------------------------------------------------- .../internal/processors/datastreamer/DataStreamerImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/ecf963e4/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java index 83fb3cb..0486bed 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/datastreamer/DataStreamerImpl.java @@ -1375,6 +1375,13 @@ public class DataStreamerImpl implements IgniteDataStreamer, Delayed Collection> entries) { IgniteCacheProxyLockFree proxy = (IgniteCacheProxyLockFree)cache; + try { + proxy.context().awaitStarted(); + } + catch (IgniteCheckedException e) { + U.convertException(e); + } + GridCacheAdapter internalCache = proxy.context().cache(); if (internalCache.isNear())