IGNITE-6493 fix IgnitePdsWalTlbTest.testWalDirectOutOfMemory() incorrect usage dataStreamer, must be in try-with-resource
Signed-off-by: Andrey Gura <ag...@apache.org> (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 <dmitriy.govoruk...@gmail.com> Authored: Mon Sep 25 13:28:42 2017 +0300 Committer: Dmitriy Govorukhin <dmitriy.govoruk...@gmail.com> 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<Integer, Integer> streamer = ig.dataStreamer(CACHE_NAME); - + try (IgniteDataStreamer<Integer, Integer> streamer = ig.dataStreamer(CACHE_NAME)) { for (int i = 0; i < 100_000; i++) { streamer.addData(i, 1);