Alexey Kuznetsov created IGNITE-2148: ----------------------------------------
Summary: Failed to start client node Key: IGNITE-2148 URL: https://issues.apache.org/jira/browse/IGNITE-2148 Project: Ignite Issue Type: Bug Components: clients Affects Versions: 1.5 Reporter: Alexey Kuznetsov Priority: Blocker Fix For: 1.5 I run code (this worked couple of days ago and also this code works with OptimizedMarshaller): {code} object TestScanNearCacheNodesLauncher extends App { def startServer(name: String): Ignite = { val cfg = new IgniteConfiguration() cfg.setGridName(name) Ignition.start(cfg) } def startClientNode(name: String): Ignite = { val cfg = new IgniteConfiguration() cfg.setGridName(name) cfg.setClientMode(true) Ignition.start(cfg) } val sn1 = startServer("srv-1") startServer("srv-2") startServer("srv-3") val srvCache1 = sn1.getOrCreateCache(new CacheConfiguration[String, String]("with-near")) srvCache1.put("test_key1", "test_value1") srvCache1.put("test_key2", "test_value2") srvCache1.put("test_key3", "test_value3") srvCache1.put("test_key4", "test_value4") val srvCache2 = sn1.getOrCreateCache(new CacheConfiguration[String, String]("no-near")) srvCache2.put("test_key5", "test_value5") srvCache2.put("test_key6", "test_value6") val cn1 = startClientNode("cln-1") val cn2 = startClientNode("cln-2") startClientNode("cln-3") val nearCfg = new NearCacheConfiguration[String, String] nearCfg.setNearEvictionPolicy(new FifoEvictionPolicy[String, String]) val nearCache1 = cn1.getOrCreateNearCache("with-near", nearCfg) val nearCache2 = cn2.getOrCreateNearCache("with-near", nearCfg) println("Value from near cache on cln-1: " + nearCache1.get("test_key1")) println("Value from near cache on cln-1: " + nearCache1.get("test_key2")) println("Value from near cache on cln-2: " + nearCache2.get("test_key3")) println("Type 'q' and press 'Enter' to exit...") while ('q' != System.in.read()) { // No-op. } Ignition.stopAll(true) System.exit(0) } {code} I got: {code} Exception in thread "main" java.lang.AssertionError: BinaryMetadataKey [typeId=1877955432] at org.apache.ignite.internal.processors.cache.GridCacheContext.toCacheKeyObject(GridCacheContext.java:1806) at org.apache.ignite.internal.processors.cache.GridCacheAdapter.localPeek(GridCacheAdapter.java:727) at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localPeek(IgniteCacheProxy.java:739) at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.addMeta(CacheObjectBinaryProcessorImpl.java:486) at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl$2.addMeta(CacheObjectBinaryProcessorImpl.java:196) at org.apache.ignite.internal.binary.BinaryContext.registerUserClassDescriptor(BinaryContext.java:562) at org.apache.ignite.internal.binary.BinaryContext.registerClassDescriptor(BinaryContext.java:517) at org.apache.ignite.internal.binary.BinaryContext.descriptorForClass(BinaryContext.java:418) at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:145) at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:132) at org.apache.ignite.internal.binary.GridBinaryMarshaller.marshal(GridBinaryMarshaller.java:225) at org.apache.ignite.internal.binary.BinaryMarshaller.marshal(BinaryMarshaller.java:95) at org.apache.ignite.internal.processors.cache.GridCacheUtils.marshal(GridCacheUtils.java:965) at org.apache.ignite.internal.processors.cache.GridCacheUtils.marshal(GridCacheUtils.java:938) at org.apache.ignite.internal.processors.cache.query.GridCacheQueryRequest.prepareMarshal(GridCacheQueryRequest.java:287) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onSend(GridCacheIoManager.java:620) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.safeSend(GridCacheIoManager.java:697) at org.apache.ignite.internal.processors.cache.query.GridCacheDistributedQueryManager.sendRequest(GridCacheDistributedQueryManager.java:748) at org.apache.ignite.internal.processors.cache.query.GridCacheDistributedQueryManager.queryDistributed(GridCacheDistributedQueryManager.java:587) at org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.execute(GridCacheQueryAdapter.java:477) at org.apache.ignite.internal.processors.cache.query.GridCacheQueryAdapter.execute(GridCacheQueryAdapter.java:400) at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.onUtilityCacheStarted(CacheObjectBinaryProcessorImpl.java:260) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:827) at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:945) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1659) at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1518) at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:974) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534) at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:515) at org.apache.ignite.Ignition.start(Ignition.java:322) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)