Re: [ovs-dev] [PATCH 7/7] raft: Fix next_index in install_snapshot reply handling.

2020-03-06 Thread Ben Pfaff
On Fri, Mar 06, 2020 at 02:47:50PM -0800, Han Zhou wrote: > On Fri, Mar 6, 2020 at 2:32 PM Ben Pfaff wrote: > > > > On Fri, Feb 28, 2020 at 06:07:10PM -0800, Han Zhou wrote: > > > When a leader handles install_snapshot reply, the next_index for > > > the follower should be log_start instead of

Re: [ovs-dev] [PATCH 7/7] raft: Fix next_index in install_snapshot reply handling.

2020-03-06 Thread Han Zhou
On Fri, Mar 6, 2020 at 2:32 PM Ben Pfaff wrote: > > On Fri, Feb 28, 2020 at 06:07:10PM -0800, Han Zhou wrote: > > When a leader handles install_snapshot reply, the next_index for > > the follower should be log_start instead of log_end, because there > > can be new entries added in leader's log

Re: [ovs-dev] [PATCH 7/7] raft: Fix next_index in install_snapshot reply handling.

2020-03-06 Thread Ben Pfaff
On Fri, Feb 28, 2020 at 06:07:10PM -0800, Han Zhou wrote: > When a leader handles install_snapshot reply, the next_index for > the follower should be log_start instead of log_end, because there > can be new entries added in leader's log after initiating the > install_snapshot procedure. Also, it

[ovs-dev] [PATCH 7/7] raft: Fix next_index in install_snapshot reply handling.

2020-02-28 Thread Han Zhou
When a leader handles install_snapshot reply, the next_index for the follower should be log_start instead of log_end, because there can be new entries added in leader's log after initiating the install_snapshot procedure. Also, it should send all the accumulated entries to follower in the