[
https://issues.apache.org/jira/browse/IGNITE-9654?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16624693#comment-16624693
]
Amelchev Nikita commented on IGNITE-9654:
-----------------------------------------
I have fixed the main problem in the test that appeared after merge IGNITE-8158.
The reason was in the grid restart future that interrupted by timeout.
_awaitTopologyChange()_ invocation in the method _GridAbstractTest#stopGrid_
throws _InterruptedException_ and setting _stopGridErr_ flag. It throws
_RuntimeException("Not all Ignite instances has been stopped")_ on tear down.
But the test is still flaky(low probability). The reason is described in
IGNITE-7766 and still unsolved. I have added an error message in the test
method for clarity. [TC mass runs
tests|https://ci.ignite.apache.org/viewType.html?buildTypeId=IgniteTests24Java8_Queries1&branch_IgniteTests24Java8=pull%2F4797%2Fhead&tab=buildTypeStatusDiv].
> Test testJoinQueryUnstableTopology is flaky in master
> -----------------------------------------------------
>
> Key: IGNITE-9654
> URL: https://issues.apache.org/jira/browse/IGNITE-9654
> Project: Ignite
> Issue Type: Bug
> Reporter: Amelchev Nikita
> Assignee: Amelchev Nikita
> Priority: Major
> Labels: MakeTeamcityGreenAgain
>
> The test
> IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest.testJoinQueryUnstableTopology
> is flaky in master. [Example of
> fail|https://ci.ignite.apache.org/viewLog.html?buildId=1910548&tab=buildResultsDiv&buildTypeId=IgniteTests24Java8_Queries1#testNameId-9054712716754027821].
> Log:
> {noformat}
> Failed to stop grid
> [igniteInstanceName=near.IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest5,
> cancel=false]
> class org.apache.ignite.internal.IgniteInterruptedCheckedException: sleep
> interrupted
> at
> org.apache.ignite.internal.util.IgniteUtils.sleep(IgniteUtils.java:7704)
> at
> org.apache.ignite.testframework.GridTestUtils.waitForCondition(GridTestUtils.java:1672)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.awaitTopologyChange(GridAbstractTest.java:2293)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1155)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1130)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.java:1430)
> at
> org.apache.ignite.internal.processors.cache.distributed.near.IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest.access$100(IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest.java:35)
> at
> org.apache.ignite.internal.processors.cache.distributed.near.IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest$2.call(IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest.java:96)
> at
> org.apache.ignite.internal.processors.cache.distributed.near.IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest$2.call(IgniteCacheDistributedPartitionQueryNodeRestartsSelfTest.java:79)
> at
> org.apache.ignite.testframework.GridTestThread.run(GridTestThread.java:86)
> Caused by: java.lang.InterruptedException: sleep interrupted
> at java.lang.Thread.sleep(Native Method)
> at
> org.apache.ignite.internal.util.IgniteUtils.sleep(IgniteUtils.java:7699)
> ... 9 more
> java.lang.RuntimeException: Not all Ignite instances has been stopped.
> Please, see log for details.
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)