Hi, all,  a new peer joined the existing raftGroup,  it need catch up
leader and lifeCycle is set to  RUNNING.
in the RaftServerImpl class has the following code
if (!proto.getInitializing() && lifeCycle.compareAndTransition(State.
*STARTING*, State.*RUNNING*)) {
role.startFollowerState(this, Op.*APPEND_ENTRIES*);
}
I found that the new follower can only go from the STARTING state to
RUNNING here. I want to know why proto is not initilizing is needed. In
other words, I can't understand the detail that new raftPeer's lifeCycle
from STARTING to RUNNING

Reply via email to