ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # IG-980: test leak corrected.
Date Fri, 19 Jun 2015 09:48:16 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-980 d1c4fb117 -> 396bc28a4


# IG-980: test leak corrected.


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

Branch: refs/heads/ignite-980
Commit: 396bc28a40a88b4cc63481f3c46ef58bb38200b3
Parents: d1c4fb1
Author: iveselovskiy <iveselovskiy@gridgain.com>
Authored: Fri Jun 19 12:48:06 2015 +0300
Committer: iveselovskiy <iveselovskiy@gridgain.com>
Committed: Fri Jun 19 12:48:06 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/hadoop/HadoopAbstractSelfTest.java     | 6 ++++++
 .../org/apache/ignite/testsuites/IgniteHadoopTestSuite.java    | 6 ------
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/396bc28a/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/HadoopAbstractSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/HadoopAbstractSelfTest.java
b/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/HadoopAbstractSelfTest.java
index 27355ea..5b9bb8c 100644
--- a/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/HadoopAbstractSelfTest.java
+++ b/modules/hadoop/src/test/java/org/apache/ignite/internal/processors/hadoop/HadoopAbstractSelfTest.java
@@ -248,6 +248,12 @@ public abstract class HadoopAbstractSelfTest extends GridCommonAbstractTest
{
          * @throws Exception
          */
         public void testLeak() throws Exception {
+            int i = 0;
+            while (i++ < 10)
+                System.gc();
+
+            Thread.sleep(10_000);
+
             // Ensure the file systems are cleared:
             int inst = HadoopLazyConcurrentMap.getNumberOfInstances();
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/396bc28a/modules/hadoop/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java
----------------------------------------------------------------------
diff --git a/modules/hadoop/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java
b/modules/hadoop/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java
index 3ce60d2..6b69d8b 100644
--- a/modules/hadoop/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java
+++ b/modules/hadoop/src/test/java/org/apache/ignite/testsuites/IgniteHadoopTestSuite.java
@@ -78,14 +78,8 @@ public class IgniteHadoopTestSuite extends TestSuite {
         suite.addTest(new TestSuite(ldr.loadClass(HadoopIgfsDualAsyncSelfTest.class.getName())));
 
 
-        suite.addTest(new TestSuite(ldr.loadClass(HadoopAbstractSelfTest.CheckFsInstancesLeakTest.class.getName())));
// ok
-
         suite.addTest(IgfsEventsTestSuite.suiteNoarchOnly());
 
-
-        suite.addTest(new TestSuite(ldr.loadClass(HadoopAbstractSelfTest.CheckFsInstancesLeakTest.class.getName())));
-
-        // ok:
         suite.addTest(new TestSuite(ldr.loadClass(HadoopFileSystemsTest.class.getName())));
 
         suite.addTest(new TestSuite(ldr.loadClass(HadoopValidationSelfTest.class.getName())));


Mime
View raw message