mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-14 10:10:42 -07:00
The main issue was that in mixed-mode, the interest through gateway may still be in optimistic mode, which when creating the source consumer would start delivery before we had a chance to setup the subscription to receive those messages. The approach is to create the subscription prior to sending the consumer create request. Also refactored a bit the code in the hope to make the retries a bit more bullet proof. We may also look at making sure that gateways are switched to interest-mode when detecting a mixed-mode setup. Also fixed a defect that could cause a source to be canceled when updating a stream. Resovles #2801 Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
6.0 KiB
6.0 KiB