[jboss-jira] [JBoss JIRA] Created: (JBREM-889) If an exception occurs during invocation, usedPooled is not decremented, thus leading into eventual remoting failures

Hasan Ceylan (JIRA) jira-events at lists.jboss.org
Sun Dec 23 22:34:43 EST 2007


If an exception occurs during invocation, usedPooled is not decremented, thus leading into eventual remoting failures 
----------------------------------------------------------------------------------------------------------------------

                 Key: JBREM-889
                 URL: http://jira.jboss.com/jira/browse/JBREM-889
             Project: JBoss Remoting
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: transport
    Affects Versions: 2.2.2.SP1
         Environment: Should for all environments
            Reporter: Hasan Ceylan


Hello,

I guess this goes into Ron's area. Back in 2004 we had had a similar issue.
:)

In MicroSocketClientInvoker.transport(), having obtained a socket, if an exception occurs during the invocation, the code that decrements usedPooled never gets called thus inflating overtime. Eventually reaches 50, the hard limit which in turn, makes clients unable to obtain a socket from pool or create a new one. 

I guess, a try, finally block is needed starting right after successful socket acquired,   till where you decrement the usedPooled (marked with // Put socket back in pool for reuse).

This will make sure the usedPooled is decremented.

I searched the JIRA and also found similar bug reports which I believe all should be related. 

Regards,
Hasan Ceylan

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