nats-io / nats-server

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

[FIXED] Freeze `n.Applied` for consumer when shutting down #6133

Closed MauriceVanVeen closed 1 week ago

MauriceVanVeen commented 1 week ago

Similar to https://github.com/nats-io/nats-server/pull/6087, but for consumers. During shutdown we can't guarantee we'll still flush all that is needed. So don't touch n.Applied and rely on replay so those changes can be properly persisted.

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