[jboss-jira] [JBoss JIRA] Resolved: (JGRP-422) UDP UcastReceiver logs spurious error during shutdown

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue Mar 6 07:55:22 EST 2007


     [ http://jira.jboss.com/jira/browse/JGRP-422?page=all ]

Bela Ban resolved JGRP-422.
---------------------------

    Resolution: Done

done

> UDP UcastReceiver logs spurious error during shutdown
> -----------------------------------------------------
>
>                 Key: JGRP-422
>                 URL: http://jira.jboss.com/jira/browse/JGRP-422
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.4.1
>            Reporter: Brian Stansberry
>         Assigned To: Bela Ban
>            Priority: Minor
>             Fix For: 2.5
>
>
> From Dimitris:
> some times, when shutting down the 'all config I see something like that.
> Any ideas?
> 14:08:03,951 INFO  [TomcatDeployer] undeploy, ctxPath=/jbossmq-httpil, warUrl=
> ./deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
> 14:08:04,282 INFO  [TreeCache] stopService(): closing the channel
> 14:08:04,352 ERROR [UDP] failed handling data from 192.168.0.22:4864
> QueueClosedException
>         at org.jgroups.util.Queue.add(Queue.java:139)
>         at org.jgroups.protocols.TP.receive(TP.java:777)
>         at org.jgroups.protocols.UDP$UcastReceiver.run(UDP.java:961)
>         at java.lang.Thread.run(Thread.java:595)
> 14:08:04,352 INFO  [TreeCache] stopService(): stopping the dispatcher 
> AFAICT, problem is that UDP.UcastReceiver.stop() does not wait for the receiver thread to terminate it's loop before returning.  Therefore the shutdown thread can go on and close the IncomingPacketHandler, leading to the QueueClosedException if UcastReceiver is in the middle of its loop and has read another packet off the wire.
> Possible solution is to have the shutdown thread join UcastReceiver.thread in UcastReceiver.stop(). Give UcastReceiver.thread time to terminate its loop before continuing on with the shutdown.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list