ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [05/12] ignite git commit: Static IP finder added to IgniteWalSerializerVersionTest test case
Date Mon, 02 Oct 2017 09:39:44 GMT
Static IP finder added to IgniteWalSerializerVersionTest test case


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

Branch: refs/heads/ignite-3478
Commit: 0ab17ab7bad025543591bef2efff176174696bfa
Parents: 0749ec4
Author: Andrey Gura <agura@apache.org>
Authored: Fri Sep 29 16:33:03 2017 +0300
Committer: Andrey Gura <agura@apache.org>
Committed: Fri Sep 29 16:33:03 2017 +0300

----------------------------------------------------------------------
 .../persistence/db/wal/IgniteWalSerializerVersionTest.java   | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0ab17ab7/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalSerializerVersionTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalSerializerVersionTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalSerializerVersionTest.java
index 6d9d80e..f31d0f9 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalSerializerVersionTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/db/wal/IgniteWalSerializerVersionTest.java
@@ -27,6 +27,9 @@ import org.apache.ignite.internal.processors.cache.persistence.wal.serializer.Re
 import org.apache.ignite.internal.processors.cache.persistence.wal.serializer.RecordV2Serializer;
 import org.apache.ignite.internal.util.typedef.internal.GPC;
 import org.apache.ignite.internal.util.typedef.internal.U;
+import org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
+import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder;
 import org.apache.ignite.testframework.GridTestUtils;
 import org.apache.ignite.testframework.junits.common.GridCommonAbstractTest;
 
@@ -36,10 +39,15 @@ import static org.apache.ignite.IgniteSystemProperties.IGNITE_WAL_SERIALIZER_VER
  *
  */
 public class IgniteWalSerializerVersionTest extends GridCommonAbstractTest {
+    /** Ip finder. */
+    private static final TcpDiscoveryIpFinder IP_FINDER = new TcpDiscoveryVmIpFinder(true);
+
     /** {@inheritDoc} */
     @Override protected IgniteConfiguration getConfiguration(String name) throws Exception
{
         IgniteConfiguration cfg = super.getConfiguration(name);
 
+        ((TcpDiscoverySpi)cfg.getDiscoverySpi()).setIpFinder(IP_FINDER);
+
         cfg.setPersistentStoreConfiguration(new PersistentStoreConfiguration());
 
         return cfg;


Mime
View raw message