ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsetrakyan <dsetrak...@apache.org>
Subject Re: failed when more then one remote node
Date Thu, 09 Jul 2015 20:07:49 GMT
Looks like this was not forwarded to the user list. It is now.

vsuslov wrote
> I have an error (stack below) when I run more then one instance on the
> remote machine and connect to them with my program, only difference is
> program use clientMode=true;
> program simple put entries to the cache, but the error comes when I start
> second node or when 2 nodes are running on remote machine. on local
> machine there aren't problems. I tried it on another remote machine and
> there arent problems. Is it because of network? what is cause can be?
> Thanks!
> 
> org.apache.ignite.cache.CachePartialUpdateException: Failed to update keys
> (retry update if possible).: [4]
>                at
> org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1566)
>                at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.cacheException(IgniteCacheProxy.java:1551)
>                at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:879)
>                at
> ru.sbt.GridGainTest.gridGainPartTest(GridGainTest.java:69)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>                at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>                at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>                at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>                at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>                at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>                at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>                at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>                at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>                at
> org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>                at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>                at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>                at
> org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>                at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>                at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>                at
> org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>                at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
>                at
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
>                at
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
>                at
> com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
>                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>                at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>                at
> com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: class
> org.apache.ignite.internal.processors.cache.CachePartialUpdateCheckedException:
> Failed to update keys (retry update if possible).: [4]
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.addFailedKeys(GridNearAtomicUpdateFuture.java:973)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:879)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map0(GridNearAtomicUpdateFuture.java:654)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapOnTopology(GridNearAtomicUpdateFuture.java:484)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.map(GridNearAtomicUpdateFuture.java:313)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:774)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache$14.apply(GridDhtAtomicCache.java:772)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.asyncOp(GridDhtAtomicCache.java:580)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.updateAllAsync0(GridDhtAtomicCache.java:772)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.putAsync0(GridDhtAtomicCache.java:317)
>                at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.putAsync(GridCacheAdapter.java:2289)
>                at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridDhtAtomicCache.put(GridDhtAtomicCache.java:293)
>                at
> org.apache.ignite.internal.processors.cache.GridCacheAdapter.put(GridCacheAdapter.java:1994)
>                at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.put(IgniteCacheProxy.java:872)
>                ... 28 more
>                Suppressed: class org.apache.ignite.IgniteCheckedException:
> Failed to send message (node may have left the grid or TCP connection
> cannot be established due to firewall issues) [node=TcpDiscoveryNode
> [id=96a29b0f-ef4d-467d-bc4f-3aeec89b9a5c, addrs=[10.68.208.6],
> sockAddrs=[/10.68.208.6:47501, /10.68.208.6:47501], discPort=47501,
> order=3, intOrder=3, loc=false, ver=1.1.3#20150618-sha1:ad0a026f,
> isClient=false], topic=TOPIC_CACHE, msg=GridNearAtomicUpdateRequest
> [nodeId=96a29b0f-ef4d-467d-bc4f-3aeec89b9a5c, futVer=GridCacheVersion
> [topVer=47931754, nodeOrderDrId=5, globalTime=1436451853093,
> order=1436452029182], fastMap=false, updateVer=null,
> topVer=AffinityTopologyVersion [topVer=5, minorTopVer=0], topLocked=false,
> syncMode=PRIMARY_SYNC, op=UPDATE, keys=[UserKeyCacheObjectImpl [val=4,
> hasValBytes=true]], conflictTtls=null, conflictExpireTimes=null,
> retval=false, expiryPlc=null, hasPrimary=true,
> subjId=78d7ebf4-8304-4e53-8fdd-a224475edb68, taskNameHash=0,
> skipStore=false, clientReq=true, filter=null, parent=GridCacheMessage
> [msgId=4, depInfo=GridDeploymentInfoBean
> [clsLdrId=24386337e41-78d7ebf4-8304-4e53-8fdd-a224475edb68,
> depMode=SHARED, userVer=0, locDepOwner=true, participants=null], err=null,
> skipPrepare=false]], policy=SYSTEM_POOL]
>                               at
> org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:952)
>                               at
> org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:1016)
>                               at
> org.apache.ignite.internal.processors.cache.GridCacheIoManager.send(GridCacheIoManager.java:595)
>                               at
> org.apache.ignite.internal.processors.cache.GridCacheIoManager.send(GridCacheIoManager.java:746)
>                               at
> org.apache.ignite.internal.processors.cache.distributed.dht.atomic.GridNearAtomicUpdateFuture.mapSingle(GridNearAtomicUpdateFuture.java:873)
>                               ... 40 more
>                Caused by: class org.apache.ignite.spi.IgniteSpiException:
> Failed to send message to remote node: TcpDiscoveryNode
> [id=96a29b0f-ef4d-467d-bc4f-3aeec89b9a5c, addrs=[10.68.208.6],
> sockAddrs=[/10.68.208.6:47501, /10.68.208.6:47501], discPort=47501,
> order=3, intOrder=3, loc=false, ver=1.1.3#20150618-sha1:ad0a026f,
> isClient=false]
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage(TcpCommunicationSpi.java:1665)
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage(TcpCommunicationSpi.java:142)
>                               at
> org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:949)
>                               ... 44 more
>                Caused by: class org.apache.ignite.IgniteCheckedException:
> Failed to connect to node (is node still alive?). Make sure that each
> GridComputeTask and GridCacheTransaction has a timeout set in order to
> prevent parties from waiting forever in case of network issues
> [nodeId=96a29b0f-ef4d-467d-bc4f-3aeec89b9a5c, addrs=[/10.68.208.6:47101]]
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2032)
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createNioClient(TcpCommunicationSpi.java:1784)
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.reserveClient(TcpCommunicationSpi.java:1703)
>                               at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage(TcpCommunicationSpi.java:1639)
>                               ... 46 more
>                               Suppressed: class
> org.apache.ignite.IgniteCheckedException: Failed to connect to address:
> /10.68.208.6:47101
>                                             at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:2037)
>                                             ... 49 more
>                               Caused by: java.net.SocketTimeoutException
>                                             at
> sun.nio.ch.SocketAdaptor.connect(SocketAdaptor.java:126)
>                                             at
> org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.createTcpClient(TcpCommunicationSpi.java:1939)
>                                             ... 49 more





-----
D.
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/failed-when-more-then-one-remote-node-tp625p628.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message