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

Evgeny Stanilovsky updated IGNITE-20489:
----------------------------------------
    Fix Version/s: 3.2
                       (was: 3.1)

> Tests that transfer leadership must make sure it doesn't change spontaneously
> -----------------------------------------------------------------------------
>
>                 Key: IGNITE-20489
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20489
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.2
>
>
> At least ItSchemaSyncAndReplicationTest and ItTableRaftSnapshotsTest transfer 
> leadership to chosen nodes in a cluster. If the leadership gets transferred 
> from the node chosen by the test (this might happen due to a GC pause, for 
> example), the test might fail.
> We could forbid a node to request votes for becoming a leader by blocking 
> RequestVoteRequests either on the network level (substituting the response 
> with a fake response with granted=false) or on the server (by substituting 
> RequestVoteRequestProcessor).
> We should also make sure that Primary Replica remains the same as the Leader 
> for the whole duration of test. Otherwise, 
> ItTableRaftSnapshotsTest#txSemanticsIsMaintained() might route the commit 
> request to a node that has just been stopped causing an (irrelevant) test 
> failure.



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

Reply via email to