Description
Sometimes we cannot guarantee that the program will run normally in various environments, and appropriate robustness enhancement may be necessary.
Before adding members, RaftServer S and the corresponding group will be created if the group is not exist and find that the interval between these two logs is more than one minute.
Since our RpcTimeout is small 1 minute, the retryPolicy has already started, but S's groupId is already in the implMaps of RaftServerProxy, which will throw AlreadyExistException. When we catch this exception, we assume that the creation has been completed and the member change can be executed
S is still in the initializing state, and this member change will not be completed. Finally, we found that S started the election and received NOT_IN_CONF reply, and then S will be closed
Attachments
Attachments
Issue Links
- links to