ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [09/14] ignite git commit: IGNITE-6493 fix IgnitePdsWalTlbTest.testWalDirectOutOfMemory() incorrect usage dataStreamer, must be in try-with-resource
Date Tue, 26 Sep 2017 09:43:13 GMT
IGNITE-6493 fix IgnitePdsWalTlbTest.testWalDirectOutOfMemory() incorrect usage dataStreamer,
must be in try-with-resource

Signed-off-by: Andrey Gura <agura@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/21cc7a48
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/21cc7a48
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/21cc7a48

Branch: refs/heads/ignite-3478
Commit: 21cc7a486d3adfb79f5540d217e1a759076fd7ba
Parents: 68c100d
Author: Dmitriy Govorukhin <dmitriy.govorukhin@gmail.com>
Authored: Mon Sep 25 13:28:42 2017 +0300
Committer: Andrey Gura <agura@apache.org>
Committed: Mon Sep 25 13:28:42 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/21cc7a48/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);
 


Mime
View raw message