[ 
https://issues.apache.org/jira/browse/IGNITE-6430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450215#comment-16450215
 ] 

Alexander Menshikov commented on IGNITE-6430:
---------------------------------------------

[~agura]
I have tried to reproduce the bug locally.
The test fails for me on another line:
{code:java}
assertTrue(finishTime > 0);
{code}
It can fix a code similar to the code a bit above in the same test with a 
*waitForCondition* method.

After that I got an assertion on this line:
{code:java}
assertTrue((U.currentTimeMillis() - startTime) > 0);
{code}
It happens when *U.currentTimeMillis() == startTime*. So the fix is trivial.

After fixing both of this troubles tests works fine for me (60 times passed).

I will leave it for the night running in a loop and will inform about the 
result.

> CacheGroupsMetricsRebalanceTest.testRebalanceEstimateFinishTime test fails 
> periodically.
> ----------------------------------------------------------------------------------------
>
>                 Key: IGNITE-6430
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6430
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Andrey Gura
>            Assignee: Alexander Menshikov
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain
>
> {{CacheGroupsMetricsRebalanceTest.testRebalanceEstimateFinishTime}} test 
> fails periodically.
> {noformat}
> [2017-09-18 15:18:20,073][ERROR][main][root] Test failed.
> junit.framework.AssertionFailedError: Expected less 5000, Actual:-100969
>     at junit.framework.Assert.fail(Assert.java:57)
>     at junit.framework.Assert.assertTrue(Assert.java:22)
>     at junit.framework.TestCase.assertTrue(TestCase.java:192)
>     at 
> org.apache.ignite.internal.processors.cache.CacheGroupsMetricsRebalanceTest.testRebalanceEstimateFinishTime(CacheGroupsMetricsRebalanceTest.java:261)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at junit.framework.TestCase.runTest(TestCase.java:176)
>     at 
> org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2000)
>     at 
> org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:132)
>     at 
> org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:1915)
>     at java.lang.Thread.run(Thread.java:745)
> {noformat}
> After fix test should be unmuted on TC.



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

Reply via email to