You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Sarah Grace Samji (Jira)" <ji...@apache.org> on 2021/04/29 22:20:00 UTC

[jira] [Commented] (IGNITE-14634) NPE in ShmemClient

    [ https://issues.apache.org/jira/browse/IGNITE-14634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17335851#comment-17335851 ] 

Sarah Grace Samji commented on IGNITE-14634:
--------------------------------------------

Hi, may I know if the fix will be prioritized for the next release? 

> NPE in ShmemClient
> ------------------
>
>                 Key: IGNITE-14634
>                 URL: https://issues.apache.org/jira/browse/IGNITE-14634
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 2.10
>            Reporter: Ilya Kazakov
>            Priority: Major
>
> This code works correctly on 2.7, but do not work on 2.8, 2.9 and 2.10
> {code:java}
> public class T1 {
>   static int sharedMemPort = 37235;
>   public static void main(String[] args) {
>     Ignition.start(getConf("I1"));
>     Ignition.start(getConf("I2"));
>   }
>   public static IgniteConfiguration getConf(String instanceName) {
>     return new IgniteConfiguration().setIgniteInstanceName(instanceName).setCommunicationSpi(new TcpCommunicationSpi().setSharedMemoryPort(sharedMemPort));
>   }
> }{code}
> On 2.10
> {code:java}
> [2021-04-23 13:06:20,562][ERROR][exchange-worker-#129%I2%][TcpCommunicationSpi] Failed to send message to remote node [node=TcpDiscoveryNode [id=7469805f-1097-4e49-a0d9-3474a6a792bb, consistentId=0:0:0:0:0:0:0:1%lo,127.0.0.1,172.17.0.1,192.168.1.105,192.168.49.1:47500, addrs=ArrayList [0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.17.0.1, 192.168.1.105, 192.168.49.1], sockAddrs=HashSet [/172.17.0.1:47500, /192.168.49.1:47500, /0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500, /192.168.1.105:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1619154380497, loc=false, ver=2.11.0#20210422-sha1:bec58b00, isClient=false], msg=GridIoMessage [plc=2, topic=TOPIC_CACHE, topicOrd=8, ordered=false, timeout=0, skipOnTimeout=false, msg=GridDhtPartitionsSingleMessage [parts=HashMap {-2100569601=GridDhtPartitionMap [moving=0, top=AffinityTopologyVersion [topVer=-1, minorTopVer=0], updateSeq=1, size=0]}, partCntrs=HashMap {-2100569601=CachePartitionPartialCountersMap {}}, partsSizes=null, partHistCntrs=null, err=null, client=false, exchangeStartTime=1619154380524, finishMsg=null, super=GridDhtPartitionsAbstractMessage [exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=f3b31869-bea3-406c-a8a3-6fe5a502d8c4, consistentId=0:0:0:0:0:0:0:1%lo,127.0.0.1,172.17.0.1,192.168.1.105,192.168.49.1:47501, addrs=ArrayList [0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.17.0.1, 192.168.1.105, 192.168.49.1], sockAddrs=HashSet [/192.168.49.1:47501, /0:0:0:0:0:0:0:1%lo:47501, /127.0.0.1:47501, /192.168.1.105:47501, /172.17.0.1:47501], discPort=47501, order=2, intOrder=2, lastExchangeTime=1619154380527, loc=true, ver=2.11.0#20210422-sha1:bec58b00, isClient=false], topVer=2, msgTemplate=null, span=org.apache.ignite.internal.processors.tracing.NoopSpan@4773b242, nodeId8=f3b31869, msg=null, type=NODE_JOINED, tstamp=1619154380517], nodeId=f3b31869, evt=NODE_JOINED], lastVer=GridCacheVersion [topVer=0, order=1619154379141, nodeOrder=0], super=GridCacheMessage [msgId=1, depInfo=null, lastAffChangedTopVer=AffinityTopologyVersion [topVer=-1, minorTopVer=0], err=null, skipPrepare=false]]]]][2021-04-23 13:06:20,562][ERROR][exchange-worker-#129%I2%][TcpCommunicationSpi] Failed to send message to remote node [node=TcpDiscoveryNode [id=7469805f-1097-4e49-a0d9-3474a6a792bb, consistentId=0:0:0:0:0:0:0:1%lo,127.0.0.1,172.17.0.1,192.168.1.105,192.168.49.1:47500, addrs=ArrayList [0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.17.0.1, 192.168.1.105, 192.168.49.1], sockAddrs=HashSet [/172.17.0.1:47500, /192.168.49.1:47500, /0:0:0:0:0:0:0:1%lo:47500, /127.0.0.1:47500, /192.168.1.105:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1619154380497, loc=false, ver=2.11.0#20210422-sha1:bec58b00, isClient=false], msg=GridIoMessage [plc=2, topic=TOPIC_CACHE, topicOrd=8, ordered=false, timeout=0, skipOnTimeout=false, msg=GridDhtPartitionsSingleMessage [parts=HashMap {-2100569601=GridDhtPartitionMap [moving=0, top=AffinityTopologyVersion [topVer=-1, minorTopVer=0], updateSeq=1, size=0]}, partCntrs=HashMap {-2100569601=CachePartitionPartialCountersMap {}}, partsSizes=null, partHistCntrs=null, err=null, client=false, exchangeStartTime=1619154380524, finishMsg=null, super=GridDhtPartitionsAbstractMessage [exchId=GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=2, minorTopVer=0], discoEvt=DiscoveryEvent [evtNode=TcpDiscoveryNode [id=f3b31869-bea3-406c-a8a3-6fe5a502d8c4, consistentId=0:0:0:0:0:0:0:1%lo,127.0.0.1,172.17.0.1,192.168.1.105,192.168.49.1:47501, addrs=ArrayList [0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.17.0.1, 192.168.1.105, 192.168.49.1], sockAddrs=HashSet [/192.168.49.1:47501, /0:0:0:0:0:0:0:1%lo:47501, /127.0.0.1:47501, /192.168.1.105:47501, /172.17.0.1:47501], discPort=47501, order=2, intOrder=2, lastExchangeTime=1619154380527, loc=true, ver=2.11.0#20210422-sha1:bec58b00, isClient=false], topVer=2, msgTemplate=null, span=org.apache.ignite.internal.processors.tracing.NoopSpan@4773b242, nodeId8=f3b31869, msg=null, type=NODE_JOINED, tstamp=1619154380517], nodeId=f3b31869, evt=NODE_JOINED], lastVer=GridCacheVersion [topVer=0, order=1619154379141, nodeOrder=0], super=GridCacheMessage [msgId=1, depInfo=null, lastAffChangedTopVer=AffinityTopologyVersion [topVer=-1, minorTopVer=0], err=null, skipPrepare=false]]]]]class org.apache.ignite.IgniteCheckedException: null at org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7613) at org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:260) at org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:209) at org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:160) at org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool.reserveClient(ConnectionClientPool.java:300) at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage0(TcpCommunicationSpi.java:1190) at org.apache.ignite.spi.communication.tcp.TcpCommunicationSpi.sendMessage(TcpCommunicationSpi.java:1137) at org.apache.ignite.internal.managers.communication.GridIoManager.send(GridIoManager.java:2101) at org.apache.ignite.internal.managers.communication.GridIoManager.sendToGridTopic(GridIoManager.java:2196) at org.apache.ignite.internal.processors.cache.GridCacheIoManager.send(GridCacheIoManager.java:1258) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.sendLocalPartitions(GridDhtPartitionsExchangeFuture.java:2186) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.sendPartitions(GridDhtPartitionsExchangeFuture.java:2323) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.distributedExchange(GridDhtPartitionsExchangeFuture.java:1781) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:1019) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3379) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3201) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120) at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.NullPointerException at org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool.createShmemClient(ConnectionClientPool.java:544) at org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool.createCommunicationClient(ConnectionClientPool.java:451) at org.apache.ignite.spi.communication.tcp.internal.ConnectionClientPool.reserveClient(ConnectionClientPool.java:239) ... 13 more
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)