[jboss-jira] [JBoss JIRA] Resolved: (JGRP-732) MPING: OutOfMemory exception can cause receiver thread to terminate

Bela Ban (JIRA) jira-events at lists.jboss.org
Sat Apr 12 08:41:59 EDT 2008


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

Bela Ban resolved JGRP-732.
---------------------------

    Resolution: Done

> MPING: OutOfMemory exception can cause receiver thread to terminate
> -------------------------------------------------------------------
>
>                 Key: JGRP-732
>                 URL: http://jira.jboss.com/jira/browse/JGRP-732
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: Bela Ban
>         Assigned To: Bela Ban
>             Fix For: 2.6.3, 2.7
>
>
> In MPING, we have something like this:
> while(receiver is running) {
>    try {
>       receiver mcast packet
>       create  input stream
>       parse data into message
>       pass message up
>    }
>    finally {
>        close input stream // <==== BUG
>    }
> }
> If we get an OOME in the finally clause, then the receiver thread will terminate. This means we will not be able to handle discovery requests from other members any more !
> FIX: we need to catch the closing of the input stream

-- 
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