Closed MauriceVanVeen closed 1 month ago
Is this a fair summary of the change?
When aborting catchup due to leader not present, do not wipe replica state
Yes :slightly_smiling_face:
LMK when this is good to go for review.
LMK when this is good to go for review.
Awaiting CI to be green, but otherwise good for review
Previously a related case of RAFT state being deleted was fixed, when running into
errCatchupTooManyRetries
: https://github.com/nats-io/nats-server/pull/5939After hitting this we shutdown and retry.. but if we have not elected a leader yet we'd hit
"catchup for stream '%s > %s' aborted, no leader"
, which then would again throw away RAFT state. This PR proposes a fix for that case.Signed-off-by: Maurice van Veen github@mauricevanveen.com