You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically we use a map of url, when that kind or re-ordering happens we forget about a url.
This can also be re-produced whit the following setup.
Server_A)
Client_advertise URLA
Server_B and Server_C have the same value in client_advertise
client_advertise URLBC
When starting all 3 server and connecting via telnet to server_A,
connect_urls will contain URLA and URLBC
if Server_B OR Server_C is shut down, server_A will only return URLA.
This can be solved by ref counting the url entires in the map or using a list instead.
Another oddity is that if all server provide the same value for client_advertise, the list will contain two identical entries.
One for the current server, one for the other server.
The unit test and the example here are a bit contrived.
However, I only looked at this because a user reported that connect_urls was off.
The text was updated successfully, but these errors were encountered:
If some servers in the cluster have the same connect URLs (due
to the use of client advertise), then it would be possible to
have a server sends the connect_urls INFO update to clients with
missing URLs.
Resolves#1515
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
Defect
added a unit test #1516 to illustrate the issue.
Basically we use a map of url, when that kind or re-ordering happens we forget about a url.
This can also be re-produced whit the following setup.
Server_A)
Client_advertise URLA
Server_B and Server_C have the same value in client_advertise
client_advertise URLBC
When starting all 3 server and connecting via telnet to server_A,
connect_urls will contain URLA and URLBC
if Server_B OR Server_C is shut down, server_A will only return URLA.
This can be solved by ref counting the url entires in the map or using a list instead.
Another oddity is that if all server provide the same value for client_advertise, the list will contain two identical entries.
One for the current server, one for the other server.
The unit test and the example here are a bit contrived.
However, I only looked at this because a user reported that connect_urls was off.
The text was updated successfully, but these errors were encountered: