nats-io / nats-server

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

[FIXED] NRG: Fix leaving observer state when applies are paused #5586

Closed neilalexander closed 3 months ago

neilalexander commented 3 months ago

Previously, if the applies were paused (i.e. due to an on-going catchup) then calls to SetObserver(...) from other places, i.e. jetstream_cluster_migrate, would not leave observer mode after applies were resumed. This could result in assets getting stuck in observer mode.

Signed-off-by: Neil Twigg neil@nats.io