United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6435198 SUN ORB's connection table cleanup code cleans up "in use"
JDK-6435198 : SUN ORB's connection table cleanup code cleans up "in use"

Details
Type:
Bug
Submit Date:
2006-06-07
Status:
Open
Updated Date:
2011-03-16
Project Name:
JDK
Resolved Date:
Component:
other-libs
OS:
windows_xp
Sub-Component:
corba:orb
CPU:
x86
Priority:
P3
Resolution:
Unresolved
Affected Versions:
1.4.2_11
Targeted Versions:
8-pool

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
SUN ORB's cleanup() code cleaned up an IIOPConnection that was in use and that caused a COMM_FAILURE exception to be thrown out the Application level code.

Basically whenever the connection table size exceeds the HighWaterMark (Default value is 240), the connection table cleanup code kicks in and tries to clean up upto NumberToReclaim (Default value is 5) number of connections. While the code seems to be trying to be careful in not cleaning up in use (busy) connections, it seems to be falling short and seems to be 
cleaning up connections that seem to be in use for the purpose of making IDL calls.

We are experiencing a problem with the SUN ORB's connection table cleanup code With 
java version "1.4.2_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode

                                    

Comments
EVALUATION

The cause of this problem is that the ConnectionCache does not propertly
manage and serialize access to the state of the Connection.  A fix is planned
for JDK 7.
                                     
2006-08-15
SUGGESTED FIX

We need to replace the current ConnectionCache with an improved design
that explictly manages connection state through a get/release 
API.  The fix also includes supporting multiple connections to the same
endpoint to improve performance and removing the current writeLock
logic on the connection.
                                     
2006-08-15



Hardware and Software, Engineered to Work Together