You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Lapin (Jira)" <ji...@apache.org> on 2024/02/09 11:38:00 UTC

[jira] [Created] (IGNITE-21503) ItRebalanceDistributedTest#testRebalanceWithTheSameNodesflaky is flaky

Alexander Lapin created IGNITE-21503:
----------------------------------------

             Summary: ItRebalanceDistributedTest#testRebalanceWithTheSameNodesflaky is flaky
                 Key: IGNITE-21503
                 URL: https://issues.apache.org/jira/browse/IGNITE-21503
             Project: Ignite
          Issue Type: Bug
            Reporter: Alexander Lapin


[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 java.base@11.0.17/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  at java.base@11.0.17/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  at java.base@11.0.17/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  at java.base@11.0.17/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)