Files
nats-server/test
Ivan Kozlovic 5dba3cdd75 [FIXED] Race condition during implicit Gateway reconnection
Say server in cluster A accepts a connection from a server in
cluster B.
The gateway is implicit, in that A does not have a configured
remote gateway to B.
Then the server in B is shutdown, which A detects and initiate
a single reconnect attempt (since it is implicit and if the
reconnect retries is not set).
While this happens, a new server in B is restarted and connects
to A. If that happens before the initial reconnect attempt
failed, A will register that new inbound and do not attempt to
solicit because it has already a remote entry for gateway B.
At this point when the reconnect to old server B fails, then
the remote GW entry is removed, and A will not create an outbound
connection to the new B server.

We fix that by checking if there is a registered inbound when
we get to the point of removing the remote on a failed implicit
reconnect. If there is one, we try the reconnection.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-05-22 13:01:17 -06:00
..
2018-01-15 15:27:18 -08:00
2019-05-10 15:11:30 -07:00
2020-02-19 13:19:08 -07:00
2020-03-31 10:29:06 -06:00
2019-12-12 11:58:24 -07:00
2018-03-15 22:31:07 -07:00
2019-07-28 07:10:37 -07:00
2020-05-20 11:14:39 -06:00
2019-08-26 09:34:17 -06:00
2020-01-10 12:01:59 -07:00
2020-05-19 14:33:06 -07:00
2020-05-19 14:26:46 -07:00