amaliujia opened a new pull request #264: URL: https://github.com/apache/incubator-ratis/pull/264
## What changes were proposed in this pull request? I found this issue when setting up MiniRaftCluster for data stream. In a normal case, every Raft peer can act as a primary server and clients will decide which Raft to use. However, when all Raft peers can act as a primary. in previous implementation, there will be a deadlock case that a server will receive a request, and then route to other peers, and other peers will do the same. Thus we should distinguish primary server by adding primary server id into the Raft proto, and do not forward requests to peers when the server is not the primary. ## What is the link to the Apache JIRA Please replace this section with the link to the Apache JIRA) ## How was this patch tested? UT ---------------------------------------------------------------- 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]
