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

Aleksey Plekhanov updated IGNITE-28871:
---------------------------------------
    Description: 
Test WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure is flaky.
Failure example: https://ci2.ignite.apache.org/viewLog.html?buildId=9188781

{noformat}
java.lang.AssertionError: Rebuild must not succeed
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at 
org.apache.ignite.testframework.junits.JUnitAssertAware.assertTrue(JUnitAssertAware.java:30)
        at 
org.apache.ignite.internal.processors.database.WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure(WalDisabledDuringIndexRecreateTest.java:191)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2488)
        at java.base/java.lang.Thread.run(Thread.java:840)
{noformat}
Root cause:
When error occurs on index rebuild - failure handler is triggered. Failure 
handler needs some time to stop node (it also needs some time to set 
{{failure().nodeStopping()}} flag, since this flag is set after printing thread 
dump). By this time index rebuild futures can be already completed (with an 
error) and deleted from future store, so, 
{{query().indexRebuildFuture(cacheId)}} returns {{null}}. When node is not yet 
stopping {{cache.contains()}} can be processed without an error.


  was:
Test WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure is flaky.
Failure example: https://ci2.ignite.apache.org/viewLog.html?buildId=9188781

{noformat}
java.lang.AssertionError: Rebuild must not succeed
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at 
org.apache.ignite.testframework.junits.JUnitAssertAware.assertTrue(JUnitAssertAware.java:30)
        at 
org.apache.ignite.internal.processors.database.WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure(WalDisabledDuringIndexRecreateTest.java:191)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at 
org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2488)
        at java.base/java.lang.Thread.run(Thread.java:840)
{noformat}
Root cause:
When error occurs on index rebuild - failure handler is triggered. Failure 
handler need some time to stop node (it also need some time to set 
{{failure().nodeStopping()}} flag, since this flag is set after printing thread 
dump). By this time index rebuild futures can be already completed (with an 
error) and deleted from future store, so, 
{{query().indexRebuildFuture(cacheId)}} returns {{null}}. When node is not yet 
stopping {{cache.contains()}} can be processed without an error.



> Flaky WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure
> -------------------------------------------------------------------
>
>                 Key: IGNITE-28871
>                 URL: https://issues.apache.org/jira/browse/IGNITE-28871
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: MakeTeamcityGreenAgain, ise
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Test WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure is flaky.
> Failure example: https://ci2.ignite.apache.org/viewLog.html?buildId=9188781
> {noformat}
> java.lang.AssertionError: Rebuild must not succeed
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at 
> org.apache.ignite.testframework.junits.JUnitAssertAware.assertTrue(JUnitAssertAware.java:30)
>       at 
> org.apache.ignite.internal.processors.database.WalDisabledDuringIndexRecreateTest.testRestartInCaseOfFailure(WalDisabledDuringIndexRecreateTest.java:191)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>       at 
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.base/java.lang.reflect.Method.invoke(Method.java:569)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at 
> org.apache.ignite.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.java:2488)
>       at java.base/java.lang.Thread.run(Thread.java:840)
> {noformat}
> Root cause:
> When error occurs on index rebuild - failure handler is triggered. Failure 
> handler needs some time to stop node (it also needs some time to set 
> {{failure().nodeStopping()}} flag, since this flag is set after printing 
> thread dump). By this time index rebuild futures can be already completed 
> (with an error) and deleted from future store, so, 
> {{query().indexRebuildFuture(cacheId)}} returns {{null}}. When node is not 
> yet stopping {{cache.contains()}} can be processed without an error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to