[ https://issues.apache.org/jira/browse/IGNITE-9948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16687695#comment-16687695 ]
Amelchev Nikita commented on IGNITE-9948: ----------------------------------------- The test was failed by infrastructure problems (too long persistence checkpoint and closing session by timeout). Now the test doesn't fall anymore ([test history|https://ci.ignite.apache.org/project.html?projectId=IgniteTests24Java8&testNameId=-4416495803371140089&tab=testDetails&branch_IgniteTests24Java8=%3Cdefault%3E]). I suggest adding the additional check for command result checking. It looks better then NPE and will clarify a reason if something goes wrong. [~dpavlov], could you help with issue resolving? > JettyRestProcessorAuthenticationWithTokenSelfTest.testGetOrCreateCache fails > on TC > ----------------------------------------------------------------------------------- > > Key: IGNITE-9948 > URL: https://issues.apache.org/jira/browse/IGNITE-9948 > Project: Ignite > Issue Type: Bug > Reporter: Amelchev Nikita > Assignee: Amelchev Nikita > Priority: Major > Labels: MakeTeamcityGreenAgain > Fix For: 2.8 > > > [Example of > fail.|https://ci.ignite.apache.org/viewLog.html?buildId=2118632&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_JavaClient#testNameId-4416495803371140089] > Log details: > {noformat} > [2018-10-19 06:59:53,063][ERROR][main][root] Test failed. > java.lang.NullPointerException > at > org.apache.ignite.internal.processors.rest.JettyRestProcessorAbstractSelfTest.checkGetOrCreateAndDestroy(JettyRestProcessorAbstractSelfTest.java:593) > at > org.apache.ignite.internal.processors.rest.JettyRestProcessorAbstractSelfTest.testGetOrCreateCache(JettyRestProcessorAbstractSelfTest.java:619) > 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 junit.framework.TestCase.runTest(TestCase.java:176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2176) > at > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:142) > at > org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:2091) > at java.lang.Thread.run(Thread.java:748){noformat} > The possible reason is the race between getting cache instance on different > nodes: > # Jetty query create cache successfully on one node. > # PME doesn't have completed. > # The test fails with NPE while getting the instance of cache on another node. -- This message was sent by Atlassian JIRA (v7.6.3#76005)