Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r/recovery_stm: stop recovery when follower was already updated
Recovery and replicate stms are not synchronized. It may be the case when both of stms are active at the same time that the same batch is delivered to the follower twice. In general this batch duplication is harmless as Raft is not vulnerable for messages redelivery but it may cause unnecessary truncation and latency increase. Added a check validating expected log end offset right before sending recovery append entries request. This will prevent sending the same set of batches twice to the follower. Fixes: #14413 Signed-off-by: Michal Maslanka <michal@redpanda.com>
- Loading branch information