[
https://issues.apache.org/jira/browse/IGNITE-25611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18028765#comment-18028765
]
Alexander Lapin commented on IGNITE-25611:
------------------------------------------
The reason is likely following:
1. NodeA (5003) starts.
2. NodeB (5004) starts.
3. Leader is elected, let's say that NodeA is a leader.
4. Because NodeC(5005) startup hangs a bit, leader ping message to NodeC may
fail and in a rare unfortunate event will be accumulated by log inspector.
5. NodeC starts.
6. NodeB stops.
7. Leader failed to send message to B which is expected.
As a result there are two connectivity related records in log from step 4 and
step 7. However within test we expect only one from step 7.
In case of two nodes in the group, situation explained in step 4 becomes
impossible, thus we use 2 nodes only.
> ItConnectionErrorTest.testStopFollower is flaky
> -----------------------------------------------
>
> Key: IGNITE-25611
> URL: https://issues.apache.org/jira/browse/IGNITE-25611
> Project: Ignite
> Issue Type: Bug
> Reporter: Alexander Lapin
> Assignee: Alexander Lapin
> Priority: Major
> Labels: MakeTeamcityGreenAgain, ignite-3
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> org.opentest4j.AssertionFailedError:
> org.apache.ignite.raft.jraft.core.ReplicatorGroupImpl has written to the log
> more than 1 time. ==> expected: <true> but was: <false> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
> at
> app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
> at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
> at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36) at
> app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:214) at
> app//org.apache.ignite.raft.server.ItConnectionErrorTest.commonTestStopNode(ItConnectionErrorTest.java:126)
> at
> app//org.apache.ignite.raft.server.ItConnectionErrorTest.testStopFollower(ItConnectionErrorTest.java:110)
> at [email protected]/java.lang.reflect.Method.invoke(Method.java:568) at
> [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511) at
> [email protected]/java.util.ArrayList.forEach(ArrayList.java:1511) {code}
> [TC
> link|https://ci.ignite.apache.org/buildConfiguration/ApacheIgnite3xGradle_Test_RunAllTests/9197741]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)