Open haraldng opened 3 years ago
It depends on how would you like to exit joint state. If auto_leave
is configured, then raft node should propose a leave joint command when enter join is applied, which is informed by apply_conf_change
. All you need to do is maintaining the metadata according the the committed entries.
If auto_leave
is set to false, then you need to propose a leave joint command, which is just an empty conf change, manually.
I hope tests code can help for now example is missing:
I don't understand how to auto leave the joint state. What metadata need to be maintained after performing apply_conf_change
and what actions need to be performed?
Is it possible to provide an example on how to handle a committed ConfChangeV2 Entry? The example in
single_mem_node
is still a TODO and infive_mem_node
still uses the old ConfChange.Thanks in advance