ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Goncharuk (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-11615) IgniteBaselineAffinityTopologyActivationTest sometimes fails due to NPE on node stop
Date Sat, 23 Mar 2019 13:59:00 GMT

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

Alexey Goncharuk updated IGNITE-11615:
--------------------------------------
    Description: 
I observe the following NPE in the test:

{code}
[13:24:30]W:		 [org.apache.ignite:ignite-core] java.lang.NullPointerException
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.CacheGroupContext.onKernalStop(CacheGroupContext.java:742)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProcessor.java:1158)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2335)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2283)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2570)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2533)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:330)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.Ignition.stop(Ignition.java:223)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1187)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractTest.java:1230)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.persistence.IgniteBaselineAffinityTopologyActivationTest.afterTest(IgniteBaselineAffinityTopologyActivationTest.java:126)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.tearDown(GridAbstractTest.java:1804)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.JUnit3TestLegacySupport.runTestCase(JUnit3TestLegacySupport.java:70)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$2.evaluate(GridAbstractTest.java:185)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.evaluateInsideFixture(GridAbstractTest.java:2579)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.access$500(GridAbstractTest.java:152)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$BeforeFirstAndAfterLastTestRule$1.evaluate(GridAbstractTest.java:2559)
{code}

  was:
I observe two kind of NPEs in the test:

The first one happens because we shutdown when MVCC coordinator is not assigned yet
{code}
java.lang.NullPointerException
	at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)
	at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)
	at org.apache.ignite.internal.processors.cache.mvcc.MvccProcessorImpl.onCoordinatorFailed(MvccProcessorImpl.java:527)
	at org.apache.ignite.internal.processors.cache.mvcc.MvccProcessorImpl.onKernalStop(MvccProcessorImpl.java:459)
	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2335)
	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2283)
	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1194)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1992)
	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1683)
	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1109)
	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:607)
	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:984)
	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:925)
	at org.apache.ignite.testframework.junits.GridAbstractTest.startGrid(GridAbstractTest.java:913)
	at org.apache.ignite.internal.processors.cache.persistence.IgniteBaselineAffinityTopologyActivationTest.startGridWithConsistentId(IgniteBaselineAffinityTopologyActivationTest.java:729)
	at org.apache.ignite.internal.processors.cache.persistence.IgniteBaselineAffinityTopologyActivationTest.testNodeWithBltIsNotAllowedToJoinClusterDuringFirstActivation(IgniteBaselineAffinityTopologyActivationTest.java:532)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2102)
	at java.lang.Thread.run(Thread.java:745)
{code}

The second one happens because we shutdown before the preloader was initialized:
{code}
[13:24:30]W:		 [org.apache.ignite:ignite-core] java.lang.NullPointerException
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.CacheGroupContext.onKernalStop(CacheGroupContext.java:742)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProcessor.java:1158)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2335)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2283)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2570)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2533)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:330)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.Ignition.stop(Ignition.java:223)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1187)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractTest.java:1230)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.persistence.IgniteBaselineAffinityTopologyActivationTest.afterTest(IgniteBaselineAffinityTopologyActivationTest.java:126)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.tearDown(GridAbstractTest.java:1804)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.JUnit3TestLegacySupport.runTestCase(JUnit3TestLegacySupport.java:70)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$2.evaluate(GridAbstractTest.java:185)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.evaluateInsideFixture(GridAbstractTest.java:2579)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.access$500(GridAbstractTest.java:152)
[13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$BeforeFirstAndAfterLastTestRule$1.evaluate(GridAbstractTest.java:2559)
{code}


> IgniteBaselineAffinityTopologyActivationTest sometimes fails due to NPE on node stop
> ------------------------------------------------------------------------------------
>
>                 Key: IGNITE-11615
>                 URL: https://issues.apache.org/jira/browse/IGNITE-11615
>             Project: Ignite
>          Issue Type: Test
>            Reporter: Alexey Goncharuk
>            Assignee: Alexey Goncharuk
>            Priority: Major
>             Fix For: 2.8
>
>
> I observe the following NPE in the test:
> {code}
> [13:24:30]W:		 [org.apache.ignite:ignite-core] java.lang.NullPointerException
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.CacheGroupContext.onKernalStop(CacheGroupContext.java:742)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProcessor.java:1158)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:2335)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:2283)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2570)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2533)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:330)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.Ignition.stop(Ignition.java:223)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1187)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractTest.java:1230)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.internal.processors.cache.persistence.IgniteBaselineAffinityTopologyActivationTest.afterTest(IgniteBaselineAffinityTopologyActivationTest.java:126)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.tearDown(GridAbstractTest.java:1804)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.JUnit3TestLegacySupport.runTestCase(JUnit3TestLegacySupport.java:70)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$2.evaluate(GridAbstractTest.java:185)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.evaluateInsideFixture(GridAbstractTest.java:2579)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest.access$500(GridAbstractTest.java:152)
> [13:24:30]W:		 [org.apache.ignite:ignite-core] 	at org.apache.ignite.testframework.junits.GridAbstractTest$BeforeFirstAndAfterLastTestRule$1.evaluate(GridAbstractTest.java:2559)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message