[ https://issues.apache.org/jira/browse/IGNITE-5746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pavel Konstantinov updated IGNITE-5746: --------------------------------------- Summary: Node mustn't start if memory policy that set in cache is not configured (was: Node mustn't start if memory policy is not configured) > Node mustn't start if memory policy that set in cache is not configured > ----------------------------------------------------------------------- > > Key: IGNITE-5746 > URL: https://issues.apache.org/jira/browse/IGNITE-5746 > Project: Ignite > Issue Type: Bug > Reporter: Pavel Konstantinov > > I faced with NPE in case if memory policy that set in cache is not configured > {code} > [11:27:30,979][SEVERE][srvc-deploy-#46%tester%][GridServiceProcessor] Failed > to do service reassignment (will retry): Test service: Key affinity singleton > class org.apache.ignite.IgniteCheckedException: Failed to get affinity > mapping from node: TcpDiscoveryNode [id=0882b08d-21e8-4fd1-add0-91c48fc8a15a, > addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, > intOrder=1, lastExchangeTime=1499919956746, loc=true, > ver=2.1.2#20170712-sha1:0cb6ac06, isClient=false] > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor.affinityCache(GridAffinityProcessor.java:476) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor.keysToNodes(GridAffinityProcessor.java:347) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor.mapKeyToNode(GridAffinityProcessor.java:259) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor.reassign(GridServiceProcessor.java:974) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor.onDeployment(GridServiceProcessor.java:1484) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor.processDeployment(GridServiceProcessor.java:1437) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor.onSystemCacheUpdated(GridServiceProcessor.java:1398) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor.access$300(GridServiceProcessor.java:119) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor$ServiceEntriesListener$1.run0(GridServiceProcessor.java:1374) > at > org.apache.ignite.internal.processors.service.GridServiceProcessor$DepRunnable.run(GridServiceProcessor.java:1806) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: class org.apache.ignite.IgniteCheckedException: null > at > org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7229) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:258) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:170) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:139) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor.affinityInfoFromNode(GridAffinityProcessor.java:501) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor.affinityCache(GridAffinityProcessor.java:459) > ... 12 more > Caused by: java.lang.NullPointerException > at > org.apache.ignite.internal.processors.affinity.GridAffinityUtils$AffinityJob.call(GridAffinityUtils.java:175) > at > org.apache.ignite.internal.processors.affinity.GridAffinityUtils$AffinityJob.call(GridAffinityUtils.java:130) > at > org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1847) > at > org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:566) > at > org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6608) > at > org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:560) > at > org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:489) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at > org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1115) > at > org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(GridTaskWorker.java:1385) > at > org.apache.ignite.internal.processors.task.GridTaskWorker.processMappedJobs(GridTaskWorker.java:640) > at > org.apache.ignite.internal.processors.task.GridTaskWorker.body(GridTaskWorker.java:532) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) > at > org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:749) > at > org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:448) > at > org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:428) > at > org.apache.ignite.internal.processors.closure.GridClosureProcessor.callAsyncNoFailover(GridClosureProcessor.java:599) > ... 14 more > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)