Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E2C9F200D40 for ; Fri, 13 Oct 2017 19:42:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E16701609E9; Fri, 13 Oct 2017 17:42:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3D1D5160C0B for ; Fri, 13 Oct 2017 19:42:50 +0200 (CEST) Received: (qmail 95110 invoked by uid 500); 13 Oct 2017 17:42:49 -0000 Mailing-List: contact commits-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list commits@ignite.apache.org Received: (qmail 94270 invoked by uid 99); 13 Oct 2017 17:42:49 -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, 13 Oct 2017 17:42:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D6C49DFF81; Fri, 13 Oct 2017 17:42:47 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: yzhdanov@apache.org To: commits@ignite.apache.org Date: Fri, 13 Oct 2017 17:43:33 -0000 Message-Id: <054104d032b94c59a74f0a3be5c03c01@git.apache.org> In-Reply-To: <923551ea2bf0464f812c292ff76fcc2a@git.apache.org> References: <923551ea2bf0464f812c292ff76fcc2a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [48/50] [abbrv] ignite git commit: IGNITE-6493 fix IgnitePdsWalTlbTest.testWalDirectOutOfMemory() incorrect usage dataStreamer, must be in try-with-resource archived-at: Fri, 13 Oct 2017 17:42:53 -0000 IGNITE-6493 fix IgnitePdsWalTlbTest.testWalDirectOutOfMemory() incorrect usage dataStreamer, must be in try-with-resource Signed-off-by: Andrey Gura (cherry picked from commit 21cc7a4) Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d3a672e8 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d3a672e8 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d3a672e8 Branch: refs/heads/ignite-2.1.5-p1 Commit: d3a672e8b99202589aba8ffa4a9c1561a68a985d Parents: 251a333 Author: Dmitriy Govorukhin Authored: Mon Sep 25 13:28:42 2017 +0300 Committer: Dmitriy Govorukhin Committed: Mon Sep 25 13:34:01 2017 +0300 ---------------------------------------------------------------------- .../processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/d3a672e8/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java index fd0fd34..8b3cbf8 100644 --- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java +++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgnitePdsWalTlbTest.java @@ -113,9 +113,7 @@ public class IgnitePdsWalTlbTest extends GridCommonAbstractTest { boolean locked = true; - try { - IgniteDataStreamer streamer = ig.dataStreamer(CACHE_NAME); - + try (IgniteDataStreamer streamer = ig.dataStreamer(CACHE_NAME)) { for (int i = 0; i < 100_000; i++) { streamer.addData(i, 1);