Files
nats-server/server
Ivan Kozlovic b325cf1e4a Fixed loss of queue subscription interest across Gateways in some cases
Suppose two servers, SA in cluster A and SB in cluster B. If SA
sends a message to SB on an account for which there is no interest
at all (account not known or no subscription), SB will send an A-
and keep track that it sent an A- for this account.

When a queue subscription is created on SB, SB will send and RS+
to A because A needs to have perfect knowledge of all queue subs
in all clusters.

If then a regular subscription is also created on SB, SB will
think that it needs to send an A+ because it had sent an A- for
this account. However, SA had an entry for this account for the
queue sub. The A+ would clear the entry in the map and would cause
SA to not send messages to SB even if they would have been a
match for the queue sub on SB.

We fix this in two ways:
- Clear the possible A- in SB when sending an RS+ for queue sub
- Processing of A-/A+ to be aware of a possible entry in the map
  due to queue subs.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2019-05-25 16:27:00 -06:00
..
2019-05-06 15:41:38 -07:00
2019-05-21 11:59:34 -07:00
2019-05-10 15:11:30 -07:00
2019-05-21 15:12:31 -07:00
2019-05-10 15:11:30 -07:00
2019-05-24 09:53:35 -06:00
2019-05-06 15:41:38 -07:00
2019-05-24 09:53:35 -06:00
2019-05-06 15:15:11 -07:00
2019-05-06 15:41:38 -07:00
2019-05-24 14:21:56 -06:00
2018-12-06 15:09:14 -08:00
2019-05-21 11:59:34 -07:00
2019-02-04 17:07:49 -08:00
2019-05-10 15:11:30 -07:00
2019-05-10 15:11:30 -07:00
2018-10-06 14:06:14 -07:00
2018-10-06 14:04:14 -07:00
2019-05-24 09:53:35 -06:00
2018-03-15 22:31:07 -07:00
2018-03-15 22:31:07 -07:00
2019-05-06 15:41:38 -07:00
2019-01-18 10:54:04 +08:00