amaliujia commented on a change in pull request #264:
URL: https://github.com/apache/incubator-ratis/pull/264#discussion_r520200313
##########
File path:
ratis-test/src/test/java/org/apache/ratis/datastream/DataStreamBaseTest.java
##########
@@ -335,17 +335,18 @@ void setup(List<RaftPeer> peers, List<RaftServer>
raftServers) {
// start stream servers on raft peers.
for (int i = 0; i < peers.size(); i++) {
final Server server = new Server(peers.get(i), raftServers.get(i));
- if (i == 0) {
- // only the first server routes requests to peers.
- List<RaftPeer> otherPeers = new ArrayList<>(peers);
- otherPeers.remove(peers.get(i));
- server.addRaftPeers(otherPeers);
- }
+ server.addRaftPeers(removePeerFromList(peers.get(i), peers));
Review comment:
I updated existing test setup to make every RaftPeer can be a primary
server.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]