[ 
https://issues.apache.org/jira/browse/IGNITE-11406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Franco Po updated IGNITE-11406:
-------------------------------
    Attachment:     (was: [IGNITE-14439] NPE when accessing clustername before 
first exchange finished - ASF JIRA.url)

> NullPointerException may occur on client start
> ----------------------------------------------
>
>                 Key: IGNITE-11406
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11406
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: 2.9
>            Reporter: Dmitry Sherstobitov
>            Assignee: Pavel Vinokurov
>            Priority: Critical
>             Fix For: 2.10
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> During testing fixes for https://issues.apache.org/jira/browse/IGNITE-10878
>  # Start cluster, create caches with no persistence and load data into it
>  # Restart each node in cluster by order (coordinator first)
> Do not wait until topology message occurs 
>  # Try to run utilities: activate, baseline (to check that cluster is alive)
>  # Run clients and load data into alive caches
> On 4th step one of the clients throw NPE on start
> {code:java}
> 2019-02-23T18:36:24,045][DEBUG][tcp-client-disco-msg-worker-#4][TcpDiscoverySpi]
>  Connection closed, local node received force fail message, will not try to 
> restore connection
> 2019-02-23T18:36:24,045][DEBUG][tcp-client-disco-msg-worker-#4][TcpDiscoverySpi]
>  Failed to restore closed connection, will try to reconnect 
> [networkTimeout=5000, joinTimeout=0, failMsg=TcpDiscoveryNodeFailedMessage 
> [failedNodeId=80f8b6ee-6a6d-4235-86e9-1b66ea310eb6, order=90, warning=Client 
> node considered as unreachable and will be dropped from cluster, because no 
> metrics update messages received in interval: 
> TcpDiscoverySpi.clientFailureDetectionTimeout() ms. It may be caused by 
> network problems or long GC pause on client node, try to increase this 
> parameter. [nodeId=80f8b6ee-6a6d-4235-86e9-1b66ea310eb6, 
> clientFailureDetectionTimeout=30000], super=TcpDiscoveryAbstractMessage 
> [sndNodeId=987d4a03-8233-4130-af5b-c06900bdb6d7, 
> id=3642cfa1961-987d4a03-8233-4130-af5b-c06900bdb6d7, 
> verifierNodeId=d9abbff3-4b4d-4a13-9cb1-0ca4d2436164, topVer=167, 
> pendingIdx=0, failedNodes=null, isClient=false]]]
> 2019-02-23T18:36:24,046][DEBUG][tcp-client-disco-msg-worker-#4][TcpDiscoverySpi]
>  Discovery notification [node=TcpDiscoveryNode 
> [id=80f8b6ee-6a6d-4235-86e9-1b66ea310eb6, addrs=[172.25.1.34], 
> sockAddrs=[lab34.gridgain.local/172.25.1.34:0], discPort=0, order=165, 
> intOrder=0, lastExchangeTime=1550936128313, loc=true, 
> ver=2.4.15#20190222-sha1:36b1d676, isClient=true], 
> type=CLIENT_NODE_DISCONNECTED, topVer=166]
> 2019-02-23T18:36:24,049][INFO 
> ][tcp-client-disco-msg-worker-#4][GridDhtPartitionsExchangeFuture] Finish 
> exchange future [startVer=AffinityTopologyVersion [topVer=165, 
> minorTopVer=0], resVer=null, err=class 
> org.apache.ignite.internal.IgniteClientDisconnectedCheckedException: Client 
> node disconnected: null]
> [2019-02-23T18:36:24,061][ERROR][Thread-2][IgniteKernal] Got exception while 
> starting (will rollback startup routine).
> java.lang.NullPointerException: null
>         at 
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.internalCacheEx(GridCacheProcessor.java:3886)
>  ~[ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.processors.cache.GridCacheProcessor.utilityCache(GridCacheProcessor.java:3858)
>  ~[ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.processors.service.GridServiceProcessor.updateUtilityCache(GridServiceProcessor.java:290)
>  ~[ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.processors.service.GridServiceProcessor.onKernalStart0(GridServiceProcessor.java:233)
>  ~[ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.processors.service.GridServiceProcessor.onKernalStart(GridServiceProcessor.java:221)
>  ~[ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1038) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1973)
>  [ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1716)
>  [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1144) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1062)
>  [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:948) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:847) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:717) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:686) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at org.apache.ignite.Ignition.start(Ignition.java:352) 
> [ignite-core-2.4.15.jar:2.4.15]
>         at 
> org.apache.ignite.piclient.api.IgniteService.startIgniteClientNode(IgniteService.java:86)
>  [piclient-2.7.jar:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_181]
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> ~[?:1.8.0_181]
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  ~[?:1.8.0_181]
>         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
>         at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) 
> [piclient-2.7.jar:?]
>         at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) 
> [piclient-2.7.jar:?]
>         at py4j.Gateway.invoke(Gateway.java:282) [piclient-2.7.jar:?]
>         at 
> py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) 
> [piclient-2.7.jar:?]
>         at py4j.commands.CallCommand.execute(CallCommand.java:79) 
> [piclient-2.7.jar:?]
>         at py4j.GatewayConnection.run(GatewayConnection.java:238) 
> [piclient-2.7.jar:?]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]{code}



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

Reply via email to