nats-io / nats-server

High-Performance server for NATS.io, the cloud and edge native messaging system.
https://nats.io
Apache License 2.0
16.03k stars 1.41k forks source link

NRG (2.11): Start catchup from `n.commit` & fix AppendEntry is stored at `seq=ae.pindex+1` #5987

Closed MauriceVanVeen closed 1 month ago

MauriceVanVeen commented 1 month ago

This PR makes three complementary fixes to the way how catchup and truncating is handled. Specifically:

Signed-off-by: Maurice van Veen github@mauricevanveen.com

derekcollison commented 1 month ago

LMK when ready for review.