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

Alexander Lapin resolved IGNITE-21503.
--------------------------------------
    Fix Version/s: 3.0.0-beta2
       Resolution: Fixed

> ItRebalanceDistributedTest#testRebalanceWithTheSameNodes is flaky
> -----------------------------------------------------------------
>
>                 Key: IGNITE-21503
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21503
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Alexander Lapin
>            Assignee: Alexander Lapin
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> [TC 
> link|https://ci.ignite.apache.org/buildConfiguration/ApacheIgnite3xGradle_Test_RunAllTests/7841877?hideTestsFromDependencies=false&hideProblemsFromDependencies=false&expandBuildTestsSection=true&expandCode+Inspection=true&expandBuildProblemsSection=true&expandBuildChangesSection=true&expandBuildDeploymentsSection=false]
> {code:java}
> Wanted but not invoked:
> replicaManager.startReplica(
>     <any>,
>     <any>,
>     <any>,
>     <any>,
>     <any>
> );
> -> at 
> org.apache.ignite.internal.replicator.ReplicaManager.startReplica(ReplicaManager.java:465)
> Actually, there were zero interactions with this mock.Wanted but not 
> invoked:replicaManager.startReplica(    <any>,    <any>,    <any>,    <any>,  
>   <any>);-> at 
> org.apache.ignite.internal.replicator.ReplicaManager.startReplica(ReplicaManager.java:465)Actually,
>  there were zero interactions with this mock.  at 
> app//org.apache.ignite.internal.replicator.ReplicaManager.startReplica(ReplicaManager.java:465)
>   at 
> app//org.apache.ignite.internal.rebalance.ItRebalanceDistributedTest.verifyThatRaftNodesAndReplicasWereStartedOnlyOnce(ItRebalanceDistributedTest.java:773)
>   at 
> app//org.apache.ignite.internal.rebalance.ItRebalanceDistributedTest.testRebalanceWithTheSameNodes(ItRebalanceDistributedTest.java:605)
>   at 
> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>  Method)  at 
> [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>   at 
> [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)  at 
> app//org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
>   at 
> app//org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
>   at 
> app//org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
>  {code}
> Reproduced locally 3 out of 10.
>  
> The reason is that replica start is asynchronous, thus we should 
> conditionally wait for corresponding verification. Basically, it's enough to 
> add timeout prior to verify.



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

Reply via email to