Connect to different host if one host/node is unavailable

Bug #202333 reported by Lukáš 'Spike' Polívka
2
Affects Status Importance Assigned to Milestone
Coccinella
Fix Released
Medium
Mats

Bug Description

If Coccinella tries to connect to the failed node, it spits out error message instead of trying another host.

After I pressed the login button again, it connected fine. Then I disconnected and Coccinella tried to connect to the failed node again and I got the same error.

Now both nodes are up, so I can't test further.

$ dig srv +short _xmpp-client._tcp.jabber.cz
5 0 5222 soumar.jabbim.cz.
5 0 5222 nezmar.jabbim.cz.

One of these nodes was down. When Coccinella “chose” the failed node to connect to, it just failed, instead of falling back to the working node.

Revision history for this message
Lukáš 'Spike' Polívka (lukas-polivka) wrote :
Revision history for this message
sander (s-devrieze) wrote :

PS: this is about a clustered Jabber server with multiple nodes and using DNS SRV Records for all nodes.

Changed in coccinella:
assignee: nobody → matsben
importance: Undecided → Medium
Revision history for this message
Mats (matsben) wrote : Re: [Bug 202333] Re: Connect to different host if one host/node is unavailable

I must admit that I never thought about the case when there were multiple
DNS TXT records. My jlibdns seems to be adapted for multiple entries,
though:
% proc cb {args} {puts "---> $args"}
% jlib::dns::get_addr_port jabber.cz cb
::dns::1
% ---> {{soumar.jabbim.cz 5222} {nezmar.jabbim.cz 5222}}

Revision history for this message
Mats (matsben) wrote :

Fix now in cvs but the actual fallback mechanism is untested since I have no control of any server with DNS SRV records.

Changed in coccinella:
milestone: none → 0.96.8
status: New → Fix Committed
sander (s-devrieze)
Changed in coccinella:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.