nats-server icon indicating copy to clipboard operation
nats-server copied to clipboard

fixed consumer restart on source filter update

Open matthiashanel opened this issue 2 years ago • 1 comments

When a stream source filter subject was updated, the internal consumer was not re created

If the upstream stream contains a tail of previously filtered messages, these will now be delivered

PLEASE check my method to restart and if my use of mset.setSourceConsumer(s.iname, si.sseq+1) is the right thing to do here. Test etc... look al right. just want to point this one out.

matthiashanel avatar Aug 10 '22 03:08 matthiashanel

In a server restart scenario, was the internal consumer hydrated with the updated config from store at that time? Is this fix making sure that the config update (source change) happens immediately?

tbeets avatar Aug 10 '22 04:08 tbeets

In a server restart scenario, was the internal consumer hydrated with the updated config from store at that time? Is this fix making sure that the config update (source change) happens immediately?

@tbeets yes, happens immediately now

matthiashanel avatar Aug 10 '22 16:08 matthiashanel