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

Tsz-wo Sze updated RATIS-2332:
------------------------------
    Description: 
In the tests, when a new server is started with a group containing all the new 
and old peers before setConf, the new server could start a leader election.  
The existing leader only has the old peers.  So the existing leader will ask 
the new server to shut down since it is not in conf.

The correct way is to start the new servers with an empty peer list.

  was:
In the tests, when a new peer is started with a group containing all the new 
and old peers before setConf, the new peer could start a leader election.  The 
existing leader only has the old peers.  So the existing leader will ask the 
new peer to shut down since it is not in conf.

A simple fix is to start the new peers with an empty conf.

       Priority: Minor  (was: Major)
        Summary: Start new servers with empty peer list in tests  (was: Start 
new server with empty peer in tests)

> Start new servers with empty peer list in tests
> -----------------------------------------------
>
>                 Key: RATIS-2332
>                 URL: https://issues.apache.org/jira/browse/RATIS-2332
>             Project: Ratis
>          Issue Type: Test
>          Components: test
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Minor
>
> In the tests, when a new server is started with a group containing all the 
> new and old peers before setConf, the new server could start a leader 
> election.  The existing leader only has the old peers.  So the existing 
> leader will ask the new server to shut down since it is not in conf.
> The correct way is to start the new servers with an empty peer list.



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

Reply via email to