ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [4/5] ignite git commit: increase number of JDBC connections for MultiJvm suite
Date Thu, 06 Apr 2017 07:32:44 GMT
increase number of JDBC connections for MultiJvm suite


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

Branch: refs/heads/ignite-3477-master
Commit: dbe7782fa6c718f60f2fdcea51b23e4213916f99
Parents: dce205f
Author: Konstantin Dudkov <kdudkov@ya.ru>
Authored: Wed Apr 5 17:33:45 2017 +0300
Committer: Konstantin Dudkov <kdudkov@ya.ru>
Committed: Wed Apr 5 17:33:45 2017 +0300

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/H2CacheStoreStrategy.java     | 2 +-
 .../ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/dbe7782f/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
index ccb2994..0167b7d 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/H2CacheStoreStrategy.java
@@ -265,7 +265,7 @@ public class H2CacheStoreStrategy implements TestCacheStoreStrategy {
          */
         static JdbcConnectionPool createDataSource() {
             JdbcConnectionPool pool = JdbcConnectionPool.create("jdbc:h2:tcp://localhost/mem:TestDb;LOCK_MODE=0",
"sa", "");
-            pool.setMaxConnections(100);
+            pool.setMaxConnections(Integer.getInteger("H2_JDBC_CONNECTIONS", 100));
             return pool;
         }
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/dbe7782f/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java
b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java
index 584916a..b621ce5 100644
--- a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java
+++ b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteCacheFullApiMultiJvmSelfTestSuite.java
@@ -71,6 +71,8 @@ public class IgniteCacheFullApiMultiJvmSelfTestSuite extends TestSuite {
     public static TestSuite suite() throws Exception {
         TestSuite suite = new TestSuite("Cache Full API Multi Jvm Test Suite");
 
+        System.setProperty("H2_JDBC_CONNECTIONS", "500");
+
         // Multi-node.
         suite.addTestSuite(GridCacheReplicatedMultiJvmFullApiSelfTest.class);
         suite.addTestSuite(GridCacheReplicatedMultiJvmP2PDisabledFullApiSelfTest.class);


Mime
View raw message