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: #ignite-237: Fix GridCacheOffHeapSelfTest.
Date Wed, 25 Feb 2015 13:05:41 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-237 3db5faca6 -> c26f64a18


#ignite-237: Fix GridCacheOffHeapSelfTest.


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

Branch: refs/heads/ignite-237
Commit: c26f64a187c5683714b1ce2b695702a42d21b73f
Parents: 3db5fac
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Wed Feb 25 16:05:35 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Wed Feb 25 16:05:35 2015 +0300

----------------------------------------------------------------------
 .../processors/cache/GridCacheOffHeapSelfTest.java      | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/c26f64a1/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapSelfTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapSelfTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapSelfTest.java
index 4846183..a3aae33 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapSelfTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridCacheOffHeapSelfTest.java
@@ -63,6 +63,9 @@ public class GridCacheOffHeapSelfTest extends GridCommonAbstractTest {
     /** */
     private final TcpDiscoveryIpFinder ipFinder = new TcpDiscoveryVmIpFinder(true);
 
+    /** PeerClassLoadingLocalClassPathExclude enable. */
+    private boolean excluded;
+
     /** {@inheritDoc} */
     @Override protected IgniteConfiguration getConfiguration(String gridName) throws Exception
{
         IgniteConfiguration cfg = super.getConfiguration(gridName);
@@ -88,8 +91,10 @@ public class GridCacheOffHeapSelfTest extends GridCommonAbstractTest {
 
         cfg.setMarshaller(new OptimizedMarshaller(false));
         cfg.setDeploymentMode(SHARED);
-        cfg.setPeerClassLoadingLocalClassPathExclude(GridCacheOffHeapSelfTest.class.getName(),
-            CacheValue.class.getName());
+
+        if (excluded)
+            cfg.setPeerClassLoadingLocalClassPathExclude(GridCacheOffHeapSelfTest.class.getName(),
+                CacheValue.class.getName());
 
         return cfg;
     }
@@ -108,6 +113,9 @@ public class GridCacheOffHeapSelfTest extends GridCommonAbstractTest {
     public void testOffHeapDeployment() throws Exception {
         try {
             Ignite ignite1 = startGrid(1);
+
+            excluded = true;
+
             Ignite ignite2 = startGrid(2);
 
             GridCache<Integer, Object> cache1 = ((IgniteKernal)ignite1).cache(null);


Mime
View raw message