Icysandwich

Results 4 issues of Icysandwich

Here the candidate should store the message sender, i.e., current leader, in votedFor. https://github.com/xnnyygn/xraft/blob/3442abcf0c54d631e10d44df577771d27138de74/xraft-core/src/main/java/in/xnnyygn/xraft/core/node/NodeImpl.java#L611 This issue can result in two leader with the same term in the following complex scenario....

I notice that the message RequestVoteResult does not contains a field for distinguishing which node the result is from. Besides, when processing RequestVoteResult, the node only checks the count of...

enhancement

See [issue 27](https://github.com/xnnyygn/xraft/issues/27). I add a field replyNode in RequestVoteResult, and maintain a set votesGranted in NodeImpl for recording which nodes already votes. Besides, I add a test case.

vertexKBcgraph in aggregateGraphletsBetweennessScores() can be cached, for it is used by multi actions.