Re: [jgroups-dev] Gossip router
Bela Ban <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <[email protected]> |
Hmm, although I *think* we should catch and handle
SocketConnectionTimeout, this doesn't seem to be the issue (can you
create a JIRA and fix this nevertheless ?)...
I think the real issue is that EC2's termination does NOT invoke the
shutdown scripts run in runlevel 0 ! This way, the virtual instance is
killed but the TCP sockets are not closed. So the GossipRouter would
wait with removing a clients entry until the socket's keepalive timeout
kicked in (if set !), and this might take 2 hrs or so !
I reproduced this issue with vmware:
* Run an instance of JBoss in vmware (192.168.1.11)
* It connects to the GossipRouter running locally, on 192.168.1.5:12001
* Power off the virtual instance
o This does NOT invoke the Kxxx scripts in runlevel 0, so
JBoss is not killed
o Also, it simply shuts down the vmware instance, without
killing any sockets !
o shutdown -h now invoked in the virtual instance works and
correctly kills JBoss
This gives us some headaches for GossipRouter: if someone running GR in
the cloud simply uses the GUI or a command to power off (or terminate)
an instance, GR won't remove that entry for a long time, possibly never !
Let's chat about this today, maybe we have to go back to having GR ping
registered instances and remove inactive ones...
Vladimir Blagojevic wrote:
> Hey Bela,
>
> The only way I can envision that ConnectionHandler in GR is not being cleaned up is that somehow we continue have a connection in a state that does not throw IOException nor Exception but only SocketTimeoutException. Have a look at ConnectionHandler#runLoop exception handling. Also ConnectionHandler#run - as soon as readLoop terminates tcp connection is cleanup explicitly.
>
> What are you thinking?
>
> --
> Vladimir Blagojevic
> JBoss Clustering Team
> JBoss by Red Hat
>
>
>
>
>
--
Bela Ban
Lead JGroups / Clustering Team
JBoss
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Javagroups-development mailing list